123456789101112131415161718192021 |
- /* https://github.com/cirosantilli/x86-bare-metal-examples#idt */
- #include "common.h"
- BEGIN
- STAGE2
- CLEAR
- PROTECTED_MODE
- IDT_SETUP_ENTRY $1, $handler
- lidt idt_descriptor
- int $1
- jmp .
- IDT_START
- IDT_SKIP 1
- IDT_ENTRY
- IDT_END
- handler:
- VGA_PRINT_STRING $message
- iret
- message:
- .asciz "int 1 handled"
|