Skip to content
Commit 5b840464 authored by James Morse's avatar James Morse
Browse files

arm64: entry.S: mask all exceptions during kernel_exit



Add a disable_daif call to kernel_exit to mask all exceptions
before restoring registers that are overwritten by an exception.

This should be done before we restore sp_el0, as any exception taken
from EL1 will assume this register is set correctly.

Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>
parent ffbbdd66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment