From 07f3883a25dc4a7bdbd52c7bd97741ccc7df13f7 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Sat, 30 Aug 2014 20:19:35 +0200 Subject: fixed bug in multitasking code --- asm/int_clock_handler.asm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'asm/int_clock_handler.asm') 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 -- cgit v1.2.3