entry: remove redundant call to proc_current_regs

This commit is contained in:
Michael Shaw 2023-11-27 02:53:10 -05:00
commit ec542bd43e

View file

@ -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); */