From 0ec5b4d78c0fa1e256577f22e4265fd8a9e12197 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 1 Dec 2014 00:03:04 +0100 Subject: Paging between 2 'tasks' loaded from ELF files. Both files are loaded at: 0x08048000 virutal! --- asm/int_clock_handler.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'asm') diff --git a/asm/int_clock_handler.asm b/asm/int_clock_handler.asm index 7e55067..bcd45da 100644 --- a/asm/int_clock_handler.asm +++ b/asm/int_clock_handler.asm @@ -19,7 +19,9 @@ int_clock_handler: pusha ;Push all standard registers - push esp ;Push pointer to all the stuff we just pushed + mov eax, esp + mov esp,0x1000 + push eax ;Push pointer to all the stuff we just pushed call task_switch_next ;Call C code ;pop ebx -- cgit v1.2.3