documented

master
Elfein Landers 2022-08-06 20:56:08 -07:00
parent 175ad8a534
commit a314f8ab99
1 changed files with 9 additions and 0 deletions

View File

@ -89,6 +89,15 @@ extern "x86-interrupt" fn double_fault_handler(
// panic!("EXCEPTION: DOUBLE FAULT\n{:#?}", stack_frame);
}
/* SAFETY
* DO NOT TOUCH
* The `#[naked]` macro removes various error/bounds checks that
* the Rust compiler would normally add.
* *Early return* and *enabling interrupts* in this function are
* undefined behavior.
* As long as nothing in this function does something that would
* normally trigger an error, this function is relatively safe.
*/
#[naked]
extern "x86-interrupt" fn timer_interrupt_handler(_stack_frame: InterruptStackFrame) {
use super::task_switcher;