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