From bcd07d2b3161364fbffa42d0d9752a1f6581b713 Mon Sep 17 00:00:00 2001 From: Miguel Date: Wed, 12 Sep 2018 16:04:15 +0200 Subject: added support for .S --- asm/asm_usermode.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'asm/asm_usermode.S') 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 -- cgit v1.2.3