HomeFreeBSD

locore.S: stash boot arguments in saved registers

Description

locore.S: stash boot arguments in saved registers

Switch the boot argument registers to the unused s3 and s4. This ensures
the values will not be clobbered by SBI or function calls; they are
consumed late in the assembly routine.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47457

Details

Provenance
mhorneAuthored on Nov 21 2024, 6:12 PM
Differential Revision
D47457: locore.S: stash boot arguments in saved registers
Parents
rGccbe9a9f732e: riscv: T-HEAD PBMT support
Branches
Unknown
Tags
Unknown