From 6b0ef21b8368c1fa936ec0b523f9c2c7e9067540 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 11 Nov 2025 19:35:39 -0700 Subject: [PATCH] kern: RESERVED_2F now set by HandleFpuException --- .../kernel/source/arch/arm64/kern_exception_handlers_asm.s | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mesosphere/kernel/source/arch/arm64/kern_exception_handlers_asm.s b/mesosphere/kernel/source/arch/arm64/kern_exception_handlers_asm.s index 5a6b3e7ca..eece0b165 100644 --- a/mesosphere/kernel/source/arch/arm64/kern_exception_handlers_asm.s +++ b/mesosphere/kernel/source/arch/arm64/kern_exception_handlers_asm.s @@ -510,6 +510,11 @@ _ZN3ams4kern4arch5arm6425FpuAccessExceptionHandlerEv: ENABLE_AND_RESTORE_FPU(x2, x0, x1, w0, w1, 1, 2) + /* Set new flag at StackParameters + 0x2F. */ + /* NOTE: This is new in 21.0.0, and does not seem to be used anywhere else in the kernel. */ + mov w0, #1 + strb w0, [sp, #(EXCEPTION_CONTEXT_SIZE + THREAD_STACK_PARAMETERS_RESERVED_2F)] + /* Restore registers. */ ldp x0, x1, [sp, #(EXCEPTION_CONTEXT_X0_X1)] ldp x2, x3, [sp, #(EXCEPTION_CONTEXT_X2_X3)]