pub struct PlatformImpl;
Implementations§
Source§impl PlatformImpl
impl PlatformImpl
pub fn kernel_regions() -> KernelRegions
pub fn kstack_size() -> usize
pub fn cpu_id() -> usize
pub fn cpu_context_size() -> usize
pub unsafe fn get_current_tcb_addr() -> *mut u8
pub unsafe fn set_current_tcb_addr(addr: *mut u8)
pub unsafe fn cpu_context_sp(ctx_ptr: *const u8) -> usize
pub unsafe fn cpu_context_set_sp(ctx_ptr: *const u8, sp: usize)
pub unsafe fn cpu_context_set_pc(ctx_ptr: *const u8, pc: usize)
pub unsafe fn cpu_context_switch(prev_tcb: *mut u8, next_tcb: *mut u8)
pub fn wait_for_interrupt()
pub fn irq_all_enable()
pub fn irq_all_disable()
pub fn irq_all_is_enabled() -> bool
pub fn on_boot_success()
pub fn shutdown() -> !
pub fn debug_put(b: u8)
pub fn dcache_range(op: CacheOp, addr: usize, size: usize)
pub fn driver_registers() -> DriverRegisterSlice
Auto Trait Implementations§
impl Freeze for PlatformImpl
impl RefUnwindSafe for PlatformImpl
impl Send for PlatformImpl
impl Sync for PlatformImpl
impl Unpin for PlatformImpl
impl UnwindSafe for PlatformImpl
Blanket Implementations§
Source§impl<T> Background for T
impl<T> Background for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more