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

arm64: entry.S: convert el1_sync



el1_sync unmasks exceptions on a case-by-case basis, debug exceptions
are unmasked, unless this was a debug exception. IRQs are unmasked
for instruction and data aborts only if the interupted context had
irqs unmasked.

Following our 'dai' order, el1_dbg should run with everything masked.
For the other cases we can inherit whatever we interrupted.

Add a macro inherit_daif to set daif based on the interrupted pstate.

Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>

If do_sea() is merged in the same cycle this needs selecting in entry.S
and calling with only debug exceptions unmasked.
parent 6344d13e
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