diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-08-30 20:19:35 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-08-30 20:19:35 +0200 |
| commit | 07f3883a25dc4a7bdbd52c7bd97741ccc7df13f7 (patch) | |
| tree | e75e4f45d731d2fe992b692e6ca95b1881b1e6ae /asm | |
| parent | 4c6017d0d21cb085bf3757c2949e435481840fe6 (diff) | |
fixed bug in multitasking code
Diffstat (limited to '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 |
