diff options
| author | Carlos Maiolino <[email protected]> | 2025-08-01 21:03:16 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-08-01 21:03:16 +0200 |
| commit | 2725b95a1f78d2feac553d37252f2e560c2f9aac (patch) | |
| tree | 3e68aaf21c25fc2a46e3ee29fb4f23b188e3b3a4 /src/boot/bootloader.asm | |
| parent | 57d8e2b236c7a185bdd941c247ef0dcc5961a24e (diff) | |
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 <[email protected]>
Diffstat (limited to 'src/boot/bootloader.asm')
| -rw-r--r-- | src/boot/bootloader.asm | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
