summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzwdz2021-07-21 19:58:13 +0200
committerdzwdz2021-07-21 19:58:13 +0200
commit2fd00afbc8dd4658e28534b4f957fc0d861e5bb0 (patch)
treee2c5f676d8d9623859fa80c77ec753bedb186d16
parent2d5cace287c1c0a5fe74c88e55987bc3cf5209cf (diff)
fix sysenter()'s stack argument
It was taken from the wrong place - also I don't think that functions should change their EIP in the first place?
-rw-r--r--src/kernel/arch/i386/sysenter.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/arch/i386/sysenter.s b/src/kernel/arch/i386/sysenter.s
index 5630c3b..0cfeb10 100644
--- a/src/kernel/arch/i386/sysenter.s
+++ b/src/kernel/arch/i386/sysenter.s
@@ -9,8 +9,8 @@
.global sysexit
.type sysexit, @function
sysexit:
- pop %ecx
- pop %edx
+ mov 4(%esp), %edx
+ mov 8(%esp), %ecx
mov $(SEG_r3data << 3 | 3), %ax
mov %ax, %ds