Files
x86-bare-metal-examples/pit_protected.S
2019-07-19 00:00:00 +00:00

19 lines
329 B
ArmAsm

/* https://github.com/cirosantilli/x86-bare-metal-examples#idt */
#include "common.h"
BEGIN
STAGE2
CLEAR
PROTECTED_MODE
IDT_SETUP_48_ISRS
REMAP_PIC_32
PIT_GENERATE_FREQUENCY
PIT_SET_MIN_FREQ
sti
jmp .
IDT_48_ENTRIES
interrupt_handler:
mov 4(%esp), %eax
VGA_PRINT_HEX_4 <%eax>
ret