Files
moss-kernel/src
Matthew Leach 0f0febdad0 arch: arm64: exceptions: use SP_EL0 as scratch reg
When detecting stack overflow in the kernel exception handler, use
`SP_EL0`, rather than `TPIDR_EL1` as the scratch register.  This allows
us to use the `TPIDR_EL1` register as a CPU-banked register for other
purposes.

Use of `SP_EL0` is safe here since the stack overflow check occurs
during kernel exceptions and SP_EL0 will be restored by the user-space
context restore logic, overriding the clobber.
2026-02-07 08:26:35 +00:00
..
2026-01-27 00:31:47 -08:00
2026-01-25 10:29:43 -08:00
2026-01-27 00:31:47 -08:00
2026-01-27 00:31:47 -08:00
2026-01-25 10:50:02 -08:00