From 2725b95a1f78d2feac553d37252f2e560c2f9aac Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Fri, 1 Aug 2025 21:03:16 +0200 Subject: Setup interrupt handling Remap master PIC to IOAddress 0x20 to avoid collisions with CPU exceptions. Setup a default interrupt handler and map all interrupts to this handler by default. Setup a Keyboard interrupt handler for testing purposes Wire everything up in the Makefile Signed-off-by: Carlos Maiolino --- src/boot/bootloader.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/boot/bootloader.asm') diff --git a/src/boot/bootloader.asm b/src/boot/bootloader.asm index 4b803fa..918ff9b 100644 --- a/src/boot/bootloader.asm +++ b/src/boot/bootloader.asm @@ -30,7 +30,9 @@ step2: sti ; Enable interrupts .load_protected: - cli + cli ; Interrupts will be disabled until we finish setting up the interrupt + ; table and remapping the PIC controllers + ; Interrupts will be enabled back in _start symbol in kernel.asm lgdt[gdt_table] mov eax, cr0 or eax, 0x1 -- cgit v1.2.3