Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/locore.S
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | #endif | ||||
str x29, [x0, #BP_KERN_DELTA] | str x29, [x0, #BP_KERN_DELTA] | ||||
adrp x25, initstack | adrp x25, initstack | ||||
add x25, x25, :lo12:initstack | add x25, x25, :lo12:initstack | ||||
str x25, [x0, #BP_KERN_STACK] | str x25, [x0, #BP_KERN_STACK] | ||||
str x24, [x0, #BP_KERN_L0PT] | str x24, [x0, #BP_KERN_L0PT] | ||||
str x27, [x0, #BP_KERN_TTBR0] | str x27, [x0, #BP_KERN_TTBR0] | ||||
str x23, [x0, #BP_BOOT_EL] | str x23, [x0, #BP_BOOT_EL] | ||||
#ifdef KASAN | |||||
/* Save bootparams */ | |||||
mov x19, x0 | |||||
/* Bootstrap an early shadow map for the boot stack. */ | |||||
bl pmap_san_bootstrap | |||||
/* Restore bootparams */ | |||||
mov x0, x19 | |||||
#endif | |||||
/* trace back starts here */ | /* trace back starts here */ | ||||
mov fp, #0 | mov fp, #0 | ||||
/* Branch to C code */ | /* Branch to C code */ | ||||
bl initarm | bl initarm | ||||
/* We are done with the boot params */ | /* We are done with the boot params */ | ||||
add sp, sp, #BOOTPARAMS_SIZE | add sp, sp, #BOOTPARAMS_SIZE | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 782 Lines • Show Last 20 Lines |