entry: change syscall function

This commit is contained in:
Michael Shaw 2023-11-22 23:36:57 -05:00
commit 53132725c5

View file

@ -196,37 +196,15 @@ irq 0x0F
.global gate_syscall .global gate_syscall
gate_syscall: gate_syscall:
cli cli
pushq %rbx save_context
pushq %rbp movq 0(%rax), %rdi
pushq %r12 movq 40(%rax), %rsi
pushq %r13 movq 32(%rax), %rdx
pushq %r14 movq 24(%rax), %rcx
pushq %r15 movq 16(%rax), %r8
movq 56(%rax), %r9
pushq %rax
pushq %rdi
pushq %rsi
pushq %rdx
pushq %rcx
pushq %r8
popq %r9
popq %r8
popq %rcx
popq %rdx
popq %rsi
popq %rdi
call syscall call syscall
call schedule
popq %r15
popq %r14
popq %r13
popq %r12
popq %rbp
popq %rbx
iretq
/* void return_from_irq(struct procregs *regs, paddr_t cr3); */ /* void return_from_irq(struct procregs *regs, paddr_t cr3); */
.global _return_to_user .global _return_to_user