mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-05 04:19:19 +00:00
Syscalls working as expected
This commit is contained in:
@ -55,16 +55,10 @@ namespace InterruptDescriptorTable
|
||||
"pushq %r13\n"
|
||||
"pushq %r14\n"
|
||||
"pushq %r15\n"
|
||||
// push ds segment
|
||||
"movq %ds, %rax\n"
|
||||
"pushq %rax\n"
|
||||
|
||||
"movq %rsp, %rdi\n"
|
||||
"call ExceptionHandler\n"
|
||||
|
||||
// pop ds segment
|
||||
"popq %rax\n"
|
||||
|
||||
// pop all registers
|
||||
"popq %r15\n"
|
||||
"popq %r14\n"
|
||||
@ -104,16 +98,10 @@ namespace InterruptDescriptorTable
|
||||
"pushq %r13\n"
|
||||
"pushq %r14\n"
|
||||
"pushq %r15\n"
|
||||
// push ds segment
|
||||
"movq %ds, %rax\n"
|
||||
"pushq %rax\n"
|
||||
|
||||
"movq %rsp, %rdi\n"
|
||||
"call MainInterruptHandler\n"
|
||||
|
||||
// pop ds segment
|
||||
"popq %rax\n"
|
||||
|
||||
"popq %r15\n"
|
||||
"popq %r14\n"
|
||||
"popq %r13\n"
|
||||
|
Reference in New Issue
Block a user