diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-10 19:55:30 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-10 19:55:30 -0400 |
commit | 991f1167df58616f4275c290fd0aa14baf7861f8 (patch) | |
tree | 9653bf01bb12985c5008baef1df627866dc16b13 /sys/include/arch/amd64/trap.h | |
parent | 2d0d7a6f61899fa7263edf63c019e53a0278928a (diff) |
kernel/amd64: trap: Add stack-segment fault ISR
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/arch/amd64/trap.h')
-rw-r--r-- | sys/include/arch/amd64/trap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/trap.h b/sys/include/arch/amd64/trap.h index 1019999..c75fa28 100644 --- a/sys/include/arch/amd64/trap.h +++ b/sys/include/arch/amd64/trap.h @@ -47,6 +47,7 @@ #define TRAP_PROTFLT 9 /* General protection */ #define TRAP_PAGEFLT 10 /* Page fault */ #define TRAP_NMI 11 /* Non-maskable interrupt */ +#define TRAP_SS 12 /* Stack-segment fault */ /* Trap is coming from user mode */ #define TRAP_USER 0x100 @@ -65,6 +66,7 @@ void segnp(void *sf); void general_prot(void *sf); void page_fault(void *sf); void nmi(void *sf); +void ss_fault(void *sf); void trap_handler(struct trapframe *tf); #else .macro handle_trap |