summaryrefslogtreecommitdiff
path: root/kern/syscall_asm.S
diff options
context:
space:
mode:
authorHanjie Wu <hanjiew@andrew.cmu.edu>2023-04-23 04:12:07 -0400
committerHanjie Wu <hanjiew@andrew.cmu.edu>2023-04-23 04:12:07 -0400
commit981a10da84b0b33d7c169566b4faa9093dff6431 (patch)
tree0de48dc7ef997fdbeea31a1e535002c2c443ba34 /kern/syscall_asm.S
parentf33b6e947b7d61b62e28983fcc54a08f15fca509 (diff)
fix
Diffstat (limited to 'kern/syscall_asm.S')
-rw-r--r--kern/syscall_asm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/syscall_asm.S b/kern/syscall_asm.S
index ca1c5a5..f3b3552 100644
--- a/kern/syscall_asm.S
+++ b/kern/syscall_asm.S
@@ -26,8 +26,8 @@ sys_\name:
mov $SEGSEL_KERNEL_FS, %eax
mov %ax, %fs
cld
- push $\index
push %esp
+ push $\index
call pv_handle_syscall
add $0x8, %esp
test %eax, %eax
@@ -98,8 +98,8 @@ sys_\name:
mov $SEGSEL_KERNEL_FS, %eax
mov %ax, %fs
cld
- push $\index
push %esp
+ push $\index
call pv_handle_syscall
add $0x8, %esp
jmp return_to_user /* check pending exit before iret */