documented

This commit is contained in:
Elfein Landers 2022-08-06 20:56:08 -07:00
parent f2ecb95beb
commit 1b67d8eaba

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;