#[exception]Expand description
Attribute to declare an exception handler and setting up respective symbols for linking
The exception handlers must have the name nmi or general_exception to
create an NMI or an General Exception handler, respectively. The handlers
take two u32 arguments for the CP0 Cause and CP0 Status registers.
§Example (General Exception)
ⓘ
#[exception]
fn general_exception(cp0_cause: u32, cp0_status: u32) {
// ...
}§Example (NMI)
ⓘ
#[exception]
fn nmi(cp0_cause: u32, cp0_status: u32) {
// ...
}