entry: remove redundant call to proc_current_regs
This commit is contained in:
parent
0297f4a34c
commit
ec542bd43e
1 changed files with 2 additions and 3 deletions
|
|
@ -197,6 +197,7 @@ irq 0x0F
|
||||||
gate_syscall:
|
gate_syscall:
|
||||||
cli
|
cli
|
||||||
save_context
|
save_context
|
||||||
|
pushq %rax
|
||||||
movq 0(%rax), %rdi
|
movq 0(%rax), %rdi
|
||||||
movq 40(%rax), %rsi
|
movq 40(%rax), %rsi
|
||||||
movq 32(%rax), %rdx
|
movq 32(%rax), %rdx
|
||||||
|
|
@ -204,10 +205,8 @@ gate_syscall:
|
||||||
movq 16(%rax), %r8
|
movq 16(%rax), %r8
|
||||||
movq 56(%rax), %r9
|
movq 56(%rax), %r9
|
||||||
call syscall
|
call syscall
|
||||||
pushq %rax
|
|
||||||
call proc_current_regs
|
|
||||||
popq %rdi
|
popq %rdi
|
||||||
movq %rdi, 0(%rax)
|
movq %rax, 0(%rdi)
|
||||||
call schedule
|
call schedule
|
||||||
|
|
||||||
/* void return_from_irq(struct procregs *regs, paddr_t cr3); */
|
/* void return_from_irq(struct procregs *regs, paddr_t cr3); */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue