Files
x86-bare-metal-examples/pit_protected.S

19 lines
329 B
ArmAsm
Raw Normal View History

/* https://github.com/cirosantilli/x86-bare-metal-examples#idt */
2018-12-04 09:46:27 +00:00
2015-11-09 14:29:15 +01:00
#include "common.h"
BEGIN
STAGE2
CLEAR
PROTECTED_MODE
IDT_SETUP_48_ISRS
REMAP_PIC_32
2015-11-10 20:43:08 +01:00
PIT_GENERATE_FREQUENCY
2015-11-09 14:29:15 +01:00
PIT_SET_MIN_FREQ
sti
jmp .
IDT_48_ENTRIES
interrupt_handler:
2015-11-10 20:43:08 +01:00
mov 4(%esp), %eax
VGA_PRINT_HEX_4 <%eax>
2015-11-10 20:43:08 +01:00
ret