#[repr(C)]pub struct PackedVeneer {
pub code: [u32; 5],
pub target: u32,
}Expand description
A resident jump veneer for one typed call site, built by the final-link packer
(overlay-compose --veneers SYMBOL). The site’s J/JAL always targets the veneer;
the veneer loads its own target word and jumps there. A lease writes the
overlay’s entry into target and the trap back when it ends, so entering and
leaving a lease are two data stores: the instruction cache is flushed only when
an image is installed or replaced (Registry::install), never per call.
The five code words never change after the final link and are never written at
run time, so the cache can hold them for good. The data load of target
is not cached (the console’s data cache is the scratchpad).
Fields§
§code: [u32; 5]lui t0, hi; lw t0, lo(t0); nop; jr t0; nop, addressing target absolutely.
target: u32Where the veneer jumps: the resident trap while no lease is live.
Implementations§
Source§impl PackedVeneer
impl PackedVeneer
Sourcepub const PLACEHOLDER: Self
pub const PLACEHOLDER: Self
Initial contents of a veneer table in resident .data; the packer overwrites
every record it uses. Keep the table in .data (link_section), never .bss.
Trait Implementations§
Source§impl Clone for PackedVeneer
impl Clone for PackedVeneer
Source§fn clone(&self) -> PackedVeneer
fn clone(&self) -> PackedVeneer
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PackedVeneer
impl Debug for PackedVeneer
Source§impl PartialEq for PackedVeneer
impl PartialEq for PackedVeneer
impl Copy for PackedVeneer
impl Eq for PackedVeneer
impl StructuralPartialEq for PackedVeneer
Auto Trait Implementations§
impl Freeze for PackedVeneer
impl RefUnwindSafe for PackedVeneer
impl Send for PackedVeneer
impl Sync for PackedVeneer
impl Unpin for PackedVeneer
impl UnsafeUnpin for PackedVeneer
impl UnwindSafe for PackedVeneer
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)