Exceptions & traps
The arm64 exception path, the Mach trap and BSD syscall dispatch tables, and the register and saved-state accessors behind them.
Exception vectors and first-level handlers
osfmk/arm64/locore.sSecond-level exception handlers
osfmk/arm64/sleh.cKernel entry and CPU bring-up
osfmk/arm64/start.sMach trap table
osfmk/kern/syscall_sw.cBSD system call dispatch (arm)
bsd/dev/arm/systemcalls.cMach exception delivery
osfmk/kern/exception.cProcessor and exception-syndrome registers (arm64)
osfmk/arm64/proc_reg.hSaved-state (exception frame) accessors
osfmk/mach/arm/thread_status.hException delivery structures
osfmk/kern/exception.hThread and thread_ro structures
osfmk/kern/thread.h