
5.3 Processor Exceptions

When the processor takes an exception, the EXL bit is set to 1, which means the system is in Kernel mode. After saving the appropriate state, the exception handler typically changes KSU to Kernel mode and resets the EXL bit back to 0. When restoring the state and restarting, the handler restores the previous value of the KSU field and sets the EXL bit back to 1.
Returning from an exception, also resets the EXL bit to 0 (see the ERET instruction in Appendix A).
In the following sections, sample hardware processes for various exceptions are shown, together with the servicing required by the handler (software).





Generated with CERN WebMaker
![]()