diff options
Diffstat (limited to 'asm/asm_usermode.S')
| -rw-r--r-- | asm/asm_usermode.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/asm/asm_usermode.S b/asm/asm_usermode.S index a07f480..72f80dc 100644 --- a/asm/asm_usermode.S +++ b/asm/asm_usermode.S @@ -1,3 +1,5 @@ +#include "../kernel/kernel.h" + .global asm_usermode asm_usermode: @@ -20,8 +22,7 @@ asm_usermode: mov %esp, %eax pushl $0x23 // user data segment - //pushl $0x8fff000-3*32 //%eax // current stack - pushl $0xe0000000-3*32 //%eax // current stack (3 values will be poped) we subst 4 to align + pushl $VMEM_USER_STACK_TOP-4*32 //(3 values will be poped on _start) we subst 4 to align pushf // // http://x86.renejeschke.de/html/file_module_x86_id_145.html |
