Skip to content
Commit 4ba2a938 authored by Mark Rutland's avatar Mark Rutland Committed by James Morse
Browse files

arm64: entry: convert el1_sync to C



This patch converts the EL1 sync logic to C code.

Largely the assembly converted to C in a relatively straightforward
manner.

Since all sync sites share a common asm entry point, the ASM_BUG()
instances are no longer required for effective backtraces back to
assembly, and we don't need similar BUG() entries.

The ESR_ELx.EC codes for all (supported) debug exceptions are now
checked in the el1_sync_handler switch statement, which renders the
check in el1_dbg redundant. This both simplifies the el1_dbg handler,
and makes the EL1 exception handling more robust to
currently-unallocated ESR_ELx.EC encodings.

Signed-off-by: Mark Rutland's avatarMark Rutland <mark.rutland@arm.com>
[split out of a bigger series, added nokprobes, moved prototypes]
Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>
parent 7ee09cd4
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