Function configure_trap_handler

Source
pub unsafe fn configure_trap_handler()
Expand description

Tell the MCU what address the trap handler is located at, and initialize mscratch to zero, indicating kernel execution.

This is a generic implementation. There may be board specific versions as some platforms have added more bits to the mtvec register.

The trap handler is called on exceptions and for interrupts.