Struct vexide_startup::ColdHeader
source · #[repr(C, packed(1))]pub struct ColdHeader {
pub magic: [u8; 4],
pub program_type: u32,
pub owner: u32,
pub padding: [u32; 2],
pub options: u32,
}Expand description
The cold header is a structure that is placed at the beginning of cold memory and tells VexOS details abuot the program.
Fields§
§magic: [u8; 4]The magic number for the cold header. This should always be “XVX5”.
program_type: u32The program type. PROS sets this to 0.
owner: u32The owner of the program. PROS sets this to 2.
padding: [u32; 2]Padding before the options.
options: u32A bitfield of program options that change the behavior of some jumptable functions.
Implementations§
source§impl ColdHeader
impl ColdHeader
Auto Trait Implementations§
impl Freeze for ColdHeader
impl RefUnwindSafe for ColdHeader
impl Send for ColdHeader
impl Sync for ColdHeader
impl Unpin for ColdHeader
impl UnwindSafe for ColdHeader
Blanket Implementations§
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