From 24b850e55e1dd8c36a4b2e946b941422db17abb5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 17 Jul 2025 00:24:02 -0400 Subject: kernel/amd64: Set up seperate syscall stack It is a good idea to have a completely different stack during syscalls. This commit implements a TSS IST entry for syscalls. Signed-off-by: Ian Moffett --- sys/include/arch/amd64/intr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include/arch/amd64') diff --git a/sys/include/arch/amd64/intr.h b/sys/include/arch/amd64/intr.h index 1877d20..3870f18 100644 --- a/sys/include/arch/amd64/intr.h +++ b/sys/include/arch/amd64/intr.h @@ -35,6 +35,7 @@ #define IST_SCHED 1U #define IST_HW_IRQ 2U #define IST_SW_INT 3U +#define IST_SYSCALL 4U /* Upper 4 bits of interrupt vector */ #define IPL_SHIFT 4 -- cgit v1.2.3