[−][src]Function r0::init_data
pub unsafe fn init_data<T>(sdata: *mut T, edata: *mut T, sidata: *const T) where
T: Copy, Initializes the .data section
Arguments
sdata. Pointer to the start of the.datasection.edata. Pointer to the open/non-inclusive end of the.datasection. (The value behind this pointer will not be modified)sidata..datasection Load Memory Address (LMA)- Use
Tto indicate the alignment of the.datasection and its LMA.
Safety
- Must be called exactly once
mem::size_of::<T>()must be non-zeroedata >= sdata- The
sdata -> edataregion must not overlap with thesidata -> ...region sdata,edataandsidatamust beTaligned.