1 use crate::os::raw::c_int;
7 pub const SOLID_BP_PROGRAM_EXITED: usize = 15;
8 pub const SOLID_BP_CSABORT: usize = 16;
11 pub fn breakpoint_program_exited(tid: usize) {
14 #[cfg(target_arch = "arm")]
15 () => asm!("bkpt #{}", const SOLID_BP_PROGRAM_EXITED, in("r0") tid),
16 #[cfg(target_arch = "aarch64")]
17 () => asm!("hlt #{}", const SOLID_BP_PROGRAM_EXITED, in("x0") tid),
23 pub fn breakpoint_abort() {
26 #[cfg(target_arch = "arm")]
27 () => asm!("bkpt #{}", const SOLID_BP_CSABORT),
28 #[cfg(target_arch = "aarch64")]
29 () => asm!("hlt #{}", const SOLID_BP_CSABORT),
35 pub use super::itron::abi::{ER, ER_ID, E_TMOUT, ID};
37 pub const SOLID_ERR_NOTFOUND: ER = -1000;
38 pub const SOLID_ERR_NOTSUPPORTED: ER = -1001;
39 pub const SOLID_ERR_EBADF: ER = -1002;
40 pub const SOLID_ERR_INVALIDCONTENT: ER = -1003;
41 pub const SOLID_ERR_NOTUSED: ER = -1004;
42 pub const SOLID_ERR_ALREADYUSED: ER = -1005;
43 pub const SOLID_ERR_OUTOFBOUND: ER = -1006;
44 pub const SOLID_ERR_BADSEQUENCE: ER = -1007;
45 pub const SOLID_ERR_UNKNOWNDEVICE: ER = -1008;
46 pub const SOLID_ERR_BUSY: ER = -1009;
47 pub const SOLID_ERR_TIMEOUT: ER = -1010;
48 pub const SOLID_ERR_INVALIDACCESS: ER = -1011;
49 pub const SOLID_ERR_NOTREADY: ER = -1012;
53 #[derive(Debug, Copy, Clone)]
54 pub struct SOLID_RTC_TIME {
65 pub fn SOLID_RTC_ReadTime(time: *mut SOLID_RTC_TIME) -> c_int;
70 pub fn SOLID_LOG_write(s: *const u8, l: usize);
75 pub fn SOLID_TLS_AddDestructor(id: i32, dtor: unsafe extern "C" fn(*mut u8));
80 pub fn SOLID_RNG_SampleRandomBytes(buffer: *mut u8, length: usize) -> c_int;
85 pub fn rwl_loc_rdl(id: ID) -> ER;
86 pub fn rwl_loc_wrl(id: ID) -> ER;
87 pub fn rwl_ploc_rdl(id: ID) -> ER;
88 pub fn rwl_ploc_wrl(id: ID) -> ER;
89 pub fn rwl_unl_rwl(id: ID) -> ER;
90 pub fn rwl_acre_rwl() -> ER_ID;
91 pub fn rwl_del_rwl(id: ID) -> ER;