summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-12-01 00:03:04 +0100
committerMichal Idziorek <m.i@gmx.at>2014-12-01 00:03:04 +0100
commit0ec5b4d78c0fa1e256577f22e4265fd8a9e12197 (patch)
treebf4b934adcbdd8ef21a194e845f629a5fbfdab60 /asm
parentb875bc86aac2c9a733ddb9b3db4ead94d2c4c053 (diff)
Paging between 2 'tasks' loaded from ELF files.
Both files are loaded at: 0x08048000 virutal!
Diffstat (limited to 'asm')
-rw-r--r--asm/int_clock_handler.asm4
1 files changed, 3 insertions, 1 deletions
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