summaryrefslogtreecommitdiff
path: root/sys/include/arch
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-17 00:24:02 -0400
committerIan Moffett <ian@osmora.org>2025-07-17 00:31:19 -0400
commit24b850e55e1dd8c36a4b2e946b941422db17abb5 (patch)
treec3f48f84a9e8ff5b2f1fab680118ffe70dda1075 /sys/include/arch
parenta802482670de836e7b255805f6d05cd908992a34 (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys/include/arch')
-rw-r--r--sys/include/arch/amd64/intr.h1
1 files changed, 1 insertions, 0 deletions
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