ptos/amd64+hal: Add interrupt handling + P1 KPCR init

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
2026-07-11 04:46:00 +00:00
parent 0f2d2b9ea5
commit 7cb153f98c
7 changed files with 335 additions and 3 deletions
+3 -3
View File
@@ -29,7 +29,7 @@
push %rcx ;\
push %rbx ;\
push %rax ;\
push $VEC
push VEC
/*
* Pop an interrupt vector alongside all general purpose
@@ -60,7 +60,7 @@
*/
#define INTR_ENTRY_EC(VEC) \
cld ;\
_TRAP_PUSHALL() ;\
_TRAP_PUSHALL(VEC) ;\
testb $3, 16(%rsp) ;\
jz 1f ;\
lfence ;\
@@ -74,7 +74,7 @@
#define INTR_ENTRY(VEC) ;\
cld ;\
push $0 ;\
_TRAP_PUSHALL() ;\
_TRAP_PUSHALL(VEC) ;\
testb $3, 8(%rsp) ;\
jz 1f ;\
lfence ;\