Device IRQs WIP

This commit is contained in:
2026-03-12 19:23:47 +01:00
parent 04b7355a3d
commit 19793e9126
29 changed files with 420 additions and 187 deletions

View File

@@ -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

View File

@@ -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; \

View File

@@ -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