diff options
author | dzwdz | 2021-07-21 19:58:13 +0200 |
---|---|---|
committer | dzwdz | 2021-07-21 19:58:13 +0200 |
commit | 2fd00afbc8dd4658e28534b4f957fc0d861e5bb0 (patch) | |
tree | e2c5f676d8d9623859fa80c77ec753bedb186d16 /src | |
parent | 2d5cace287c1c0a5fe74c88e55987bc3cf5209cf (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?
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/arch/i386/sysenter.s | 4 |
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 |