pit_protected.S 329 B

12345678910111213141516171819
  1. /* https://github.com/cirosantilli/x86-bare-metal-examples#idt */
  2. #include "common.h"
  3. BEGIN
  4. STAGE2
  5. CLEAR
  6. PROTECTED_MODE
  7. IDT_SETUP_48_ISRS
  8. REMAP_PIC_32
  9. PIT_GENERATE_FREQUENCY
  10. PIT_SET_MIN_FREQ
  11. sti
  12. jmp .
  13. IDT_48_ENTRIES
  14. interrupt_handler:
  15. mov 4(%esp), %eax
  16. VGA_PRINT_HEX_4 <%eax>
  17. ret