Files
x86-bare-metal-examples/idt1.S
2018-12-04 09:46:27 +00:00

21 lines
334 B
ArmAsm

/* 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"