From e7b9569041521da7e0b67c30af7179c0af1e3738 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Thu, 27 Nov 2014 01:44:25 +0100 Subject: struggling with new multitasking --- asm/int_clock_handler.asm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'asm') diff --git a/asm/int_clock_handler.asm b/asm/int_clock_handler.asm index c6c91fc..7e55067 100644 --- a/asm/int_clock_handler.asm +++ b/asm/int_clock_handler.asm @@ -1,8 +1,6 @@ global int_clock_handler [extern task_switch_next] -;CLOCK_COUNTER: -; db 0x00 [bits 32] int_clock_handler: @@ -20,8 +18,8 @@ int_clock_handler: ; mov byte [CLOCK_COUNTER], 0x00 pusha ;Push all standard registers - push esp ;Push pointer to all the stuff we just pushed + push esp ;Push pointer to all the stuff we just pushed call task_switch_next ;Call C code ;pop ebx @@ -30,7 +28,6 @@ pusha ;Push all standard registers ;cmp eax,ebx ;jne compare - mov esp, eax ;Replace the stack with what the C code gave us -- cgit v1.2.3