#[unsafe(no_mangle)]pub unsafe extern "C" fn initialize_ram_jump_to_main()Expand description
Assembly function to initialize the .bss and .data sections in RAM.
We need to (unfortunately) do these operations in assembly because it is not valid to run Rust code without RAM initialized.
See https://github.com/tock/tock/issues/2222 for more information.
§Safety
§naked
- INPUTS: This does not use the existing value of any registers.
- OUTPUTS: This does not write any callee-saved registers, and only uses caller-saved registers.
- This does not fall-through, it branches at the end.
§no_mangle
We use initialize_ram_jump_to_main as a symbol in the linker file. This is
the only user of the name initialize_ram_jump_to_main and no other symbol
may use the same name.