Device IRQs WIP
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#define _KERNEL_AMD64_INTR_DEFS_H
|
||||
|
||||
#define PS2KB 32
|
||||
#define IDE_DRIVE_PRIM 33
|
||||
#define IDE_DRIVE_SCND 34
|
||||
|
||||
#define SCHED_PREEMPT_TIMER 80
|
||||
#define CPU_REQUEST_SCHED 82
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
; \
|
||||
movq %rsp, %rdi; \
|
||||
; \
|
||||
movq %cr3, %rax; pushq %rax; \
|
||||
movq %cr3, %rax; \
|
||||
pushq %rax; \
|
||||
; \
|
||||
movq %rsp, %rbp; \
|
||||
; \
|
||||
@@ -36,7 +37,8 @@
|
||||
; \
|
||||
movq %rbp, %rsp; \
|
||||
; \
|
||||
popq %rax; movq %rax, %cr3; \
|
||||
popq %rax; \
|
||||
movq %rax, %cr3; \
|
||||
; \
|
||||
pop_regs; \
|
||||
addq $16, %rsp; \
|
||||
|
||||
@@ -28,7 +28,8 @@ syscall_entry:
|
||||
|
||||
movq %rsp, %rdi
|
||||
|
||||
movq %cr3, %rax; pushq %rax
|
||||
movq %cr3, %rax
|
||||
pushq %rax
|
||||
|
||||
movq %rsp, %rbp
|
||||
|
||||
@@ -38,7 +39,8 @@ syscall_entry:
|
||||
|
||||
movq %rbp, %rsp
|
||||
|
||||
popq %rbx; movq %rbx, %cr3
|
||||
popq %rbx
|
||||
movq %rbx, %cr3
|
||||
|
||||
pop_regs_skip_rax
|
||||
|
||||
|
||||
Reference in New Issue
Block a user