diff options
| author | Miguel <m.i@gmx.at> | 2018-09-12 16:04:15 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-12 16:04:15 +0200 |
| commit | bcd07d2b3161364fbffa42d0d9752a1f6581b713 (patch) | |
| tree | 47b8ef39c5c3962cd849493737adb3a8c5b095c3 /asm/asm_usermode.S | |
| parent | c72944b5646863ffaaaff94dc03b939a08566203 (diff) | |
added support for .S
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 |
