X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/a39ff7e25e19b3a8c3020042a3872ca9ec9659f1..9d749ea394c01276fa19e397e70f46858e849c76:/osfmk/arm64/locore.s diff --git a/osfmk/arm64/locore.s b/osfmk/arm64/locore.s index 4430d3b5c..376e90195 100644 --- a/osfmk/arm64/locore.s +++ b/osfmk/arm64/locore.s @@ -400,6 +400,7 @@ Lel1_sp1_serror_vector_long: b fleh_dispatch64 .macro EL0_64_VECTOR + mov x18, xzr // Zero x18 to avoid leaking data to user SS stp x0, x1, [sp, #-16]! // Save x0 and x1 to the exception stack mrs x0, TPIDR_EL1 // Load the thread register mrs x1, SP_EL0 // Load the user stack pointer