From 4404fa9b3d98646f942e32146722a9d0a68edc13 Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 23 Aug 2018 03:20:56 +0200 Subject: never ending struggle with forking --- asm/usermode.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asm/usermode.s') diff --git a/asm/usermode.s b/asm/usermode.s index 67eca04..99cee49 100644 --- a/asm/usermode.s +++ b/asm/usermode.s @@ -20,14 +20,14 @@ usermode: mov %esp, %eax pushl $0x23 // user data segment - pushl %eax // current stack + pushl $0x8fff000-3*32 //%eax // current stack pushf // // http://x86.renejeschke.de/html/file_module_x86_id_145.html //mov $0x200, %eax //push %eax // eflags image pushl $0x1B // return code segment selector - push %edx // return instruction pointer + push %edx // return instruction pointer iret -- cgit v1.2.3