docs: 📚 Update safety docs

This commit is contained in:
Berkus Decker 2022-09-11 18:00:31 +03:00 committed by Berkus Decker
parent 61762ccbf6
commit f964fea4c3
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ macro_rules! entry {
/// # Safety
///
/// Totally unsafe! We're in the hardware land.
/// We assume that no statics are accessed before transition to main from this function.
#[link_section = ".text.boot"]
unsafe fn reset() -> ! {
extern "Rust" {
@ -216,6 +217,10 @@ fn setup_and_enter_el1_from_el3() -> ! {
/// Dissection of various RPi core boot stubs is available
/// [here](https://leiradel.github.io/2019/01/20/Raspberry-Pi-Stubs.html).
///
/// # Safety
///
/// Totally unsafe! We're in the hardware land.
/// We assume that no statics are accessed before transition to main from reset() function.
#[no_mangle]
#[link_section = ".text.boot.entry"]
pub unsafe extern "C" fn _boot_cores() -> ! {