18.2.17 Exceptions
In addition, two weak general exception handlers are provided that can be overridden by
the application — one to handle exceptions when StatusBEV
is 1
(_bootstrap_exception_handler
), and one to handle exceptions when
StatusBEV
is 0 (_general_exception_handler
). Both
the weak Reset exception handler and the weak general exception handler provided with
the start-up code causes a software Reset. The start-up code arranges for a jump to the
bootstrap exception handler to be located at 0xBFC00380
, and a jump to
the general exception handler to be located at EBASE + 0x180
.
Both handlers must be attributed with the nomips16
[for example,
__attribute__ ((nomips16))
], since the start-up code jumps to these
functions.
When the BOOTISA configuration bit is set for exceptions to be in the microMIPS mode,
both handlers must be attributed with the micromips
attribute [for
example, __attribute__((micromips))
].