Part 3: The exception model
Review part: concise and register-precise, for readers who already know this material.
Prerequisites: 2.1 Exception levels, Security states and execution states, 2.4 PSTATE, 2.6 The trap-control map.
If you already know: how a TF-A or OP-TEE vector table is laid out and how SCR_EL3.{IRQ,FIQ} steer interrupts to EL3, skim 3.1 and 3.3. Read the FEAT_ExS and illegal-return parts of 3.2, the FEAT_DoubleFault material at the end of 3.3, and all of 3.4.
Why this matters for bring-up/validation: the first sign of almost every bring-up failure is an exception, and you can only read ESR_ELx, ELR_ELx and FAR_ELx correctly if you know exactly what the architecture promises about them.
This part restates the AArch64 exception model in the vocabulary of the Arm ARM. 3.1 classifies exceptions (synchronous, IRQ, FIQ, SError), defines “precise” and “taken to ELx”, and pins down how the 16-entry vector table at VBAR_ELx is indexed. 3.2 gives the exact architectural state changes on entry and on ERET: ELR_ELx, SPSR_ELx, the ESR_ELx EC/IL/ISS layout, when FAR_ELx is valid, the PSTATE fields the hardware sets on entry, what makes an exception return illegal, and how FEAT_ExS can remove the context synchronization that entry and return normally provide.
3.3 covers the routing controls in SCR_EL3 and HCR_EL2, the asynchronous routing tables, and the cases where PSTATE.{A,I,F} do not mask an exception, including the FEAT_DoubleFault and FEAT_DoubleFault2 controls for errors that arrive while PSTATE.A is set. 3.4 treats SError on its own terms: asynchronous external aborts, error synchronization with ESB and IESB, deferred errors in DISR_EL1/VDISR_EL2, the SError ISS, and when an SError can be attributed to a specific instruction. Crash triage is in 18.3, and the RAS error-record architecture is in 16.7.