Function r0::zero_bss [] [src]

pub unsafe fn zero_bss<T>(sbss: *mut T, ebss: *mut T) where
    T: Copy

Zeroes the .bss section

Arguments

  • sbss. Pointer to the start of the .bss section.
  • ebss. Pointer to the open/non-inclusive end of the .bss section. (The value behind this pointer will not be modified)
  • Use T to indicate the alignment of the .bss section.

Safety

  • Must be called exactly once
  • mem::size_of::<T>() must be non-zero
  • ebss >= sbss
  • sbss and ebss must be T aligned.