Initialisation
()
| 27 | |
| 28 | // Initialisation |
| 29 | pub fn init() { |
| 30 | gdt::init(); |
| 31 | interrupts::init_idt(); |
| 32 | unsafe { interrupts::PICS.lock().initialize() }; // Configure hardware interrupt controller |
| 33 | x86_64::instructions::interrupts::enable(); // CPU starts listening for hardware interrupts |
| 34 | } |
| 35 | |
| 36 | /// Energy-efficient endless loop |
| 37 | pub fn hlt_loop() -> ! { |