5.3 Processor Exceptions

Exception Types


This section gives sample exception handler operations for the following exception types:

When the
EXL bit in the Status register is 0, either User, Supervisor, or Kernel operating mode is specified by the KSU bits in the Status register. When the EXL bit is a 1, the processor is in Kernel mode.

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).



Copyright 1996, MIPS Technologies, Inc. -- 21 MAR 96

Generated with CERN WebMaker
statistics