diff options
Diffstat (limited to 'asm/int_clock_handler.asm')
| -rw-r--r-- | asm/int_clock_handler.asm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/asm/int_clock_handler.asm b/asm/int_clock_handler.asm index dd0de96..177492f 100644 --- a/asm/int_clock_handler.asm +++ b/asm/int_clock_handler.asm @@ -1,21 +1,21 @@ global int_clock_handler [extern task_switch_next] -CLOCK_COUNTER: - db 0x00 +;CLOCK_COUNTER: +; db 0x00 [bits 32] int_clock_handler: ;Notice there is no IRQ number or error code - we don't need them - inc byte [CLOCK_COUNTER] +; inc byte [CLOCK_COUNTER] - cmp byte [CLOCK_COUNTER], 0x10 +; cmp byte [CLOCK_COUNTER], 0x2 - jne skip_clock +; jne skip_clock - mov byte [CLOCK_COUNTER], 0x00 +; mov byte [CLOCK_COUNTER], 0x00 pusha ;Push all standard registers @@ -27,7 +27,7 @@ int_clock_handler: popa ;Put the standard registers back - skip_clock: +; skip_clock: mov al, 0x20 ;Port number AND command number to Acknowledge IRQ out 0x20, al ;Acknowledge IRQ, so we keep getting interrupts |
