pub struct StaticImport<'a> { /* private fields */ }Expand description
A known resident direct-call instruction, not an escaped function pointer.
Implementations§
Source§impl<'a> StaticImport<'a>
impl<'a> StaticImport<'a>
Sourcepub unsafe fn new(
word: &'a mut u32,
site: u32,
module: Handle,
offset: u32,
) -> Self
pub unsafe fn new( word: &'a mut u32, site: u32, module: Handle, offset: u32, ) -> Self
Bind only a J/JAL emitted by the same compilation as the packaged Rust entry. The typed caller and callee must share their exact ABI/types.
§Safety
word must name the actual writable resident instruction at site.
Its typed callee must be the packaged export at offset; no other CPU
or DMA user may read/write the instruction during rebinding.