Initialize IDT with specific trap handlers for each vector

This commit is contained in:
2026-03-27 19:16:16 +01:00
父節點 a64aa83eb8
當前提交 9c449bed43
共有 6 個文件被更改,包括 27 次插入3 次删除

查看文件

@@ -187,3 +187,12 @@ KernelModeReturn$\Vector:
ArCreateTrapHandler 0x\i\j
.endr
.endr
/* Define array of pointers to the trap handlers */
.global ArTrapEntry
ArTrapEntry:
.irp i,0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
.irp j,0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
.quad ArTrap0x\i\j
.endr
.endr