123456789101112131415161718192021 |
- /* https://github.com/cirosantilli/x86-bare-metal-examples#pit_sleep_ticks */
- #include "common.h"
- BEGIN
- IVT_PIT_SETUP
- PIT_GENERATE_FREQUENCY
- PIT_SET_FREQ 1000
- sti
- loop:
- PUTC $'a
- PUTC $'\n
- PIT_SLEEP_TICKS $500
- jmp loop
- PIT_SLEEP_TICKS_GLOBALS
- handler:
- cli
- PIT_SLEEP_TICKS_HANDLER_UPDATE
- PIC_EOI
- sti
- iret
|