test_pit_sleep_ticks.S 277 B

12345678910111213141516171819
  1. #include "common.h"
  2. BEGIN
  3. IVT_PIT_SETUP
  4. PIT_GENERATE_FREQUENCY
  5. PIT_SET_FREQ 1000
  6. sti
  7. loop:
  8. PUTC $'a
  9. PUTC $'\n
  10. PIT_SLEEP_TICKS $500
  11. jmp loop
  12. PIT_SLEEP_TICKS_GLOBALS
  13. handler:
  14. cli
  15. PIT_SLEEP_TICKS_HANDLER_UPDATE
  16. PIC_EOI
  17. sti
  18. iret