Function fault_log::log_exception
source · pub fn log_exception(
fault_type: u8,
instruction_pointer: usize,
error_code: Option<u64>,
address_accessed: Option<usize>
)
Expand description
Add a new exception instance to the fault log.
Generally it will have fault_type
and instruction_pointer
.
If error_code
is provided with exception it will be send to
the function as Some(error_code)
.
If the exception is a page fault the address attempted to accesss
will also be send to the function as Some(address_accessed)