From ec542bd43eaa09cae8b63fff89d4150deaf85290 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Mon, 27 Nov 2023 02:53:10 -0500 Subject: [PATCH] entry: remove redundant call to `proc_current_regs` --- sched/entry.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sched/entry.S b/sched/entry.S index a5535be..50d0ac6 100644 --- a/sched/entry.S +++ b/sched/entry.S @@ -197,6 +197,7 @@ irq 0x0F gate_syscall: cli save_context + pushq %rax movq 0(%rax), %rdi movq 40(%rax), %rsi movq 32(%rax), %rdx @@ -204,10 +205,8 @@ gate_syscall: movq 16(%rax), %r8 movq 56(%rax), %r9 call syscall - pushq %rax - call proc_current_regs popq %rdi - movq %rdi, 0(%rax) + movq %rax, 0(%rdi) call schedule /* void return_from_irq(struct procregs *regs, paddr_t cr3); */