summaryrefslogtreecommitdiff
path: root/asm/usermode.s
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-23 03:20:56 +0200
committerMiguel <m.i@gmx.at>2018-08-23 03:20:56 +0200
commit4404fa9b3d98646f942e32146722a9d0a68edc13 (patch)
tree79e494ec81a462db0217fc763a7ddae1827c02bd /asm/usermode.s
parent98bf7b67543b36b6fe49f2b68c115ebeaf630603 (diff)
never ending struggle with forking
Diffstat (limited to 'asm/usermode.s')
-rw-r--r--asm/usermode.s4
1 files changed, 2 insertions, 2 deletions
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