From ec83f6c6a28435b0c5f5f2cb9f94a6c19479254d Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Tue, 23 Jun 2026 16:53:05 +0000 Subject: [PATCH] stos/amd64: Add IDT gate types Signed-off-by: Chloe M. --- paw/stos/head/arch/amd64/idt.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 paw/stos/head/arch/amd64/idt.h diff --git a/paw/stos/head/arch/amd64/idt.h b/paw/stos/head/arch/amd64/idt.h new file mode 100644 index 0000000..753e776 --- /dev/null +++ b/paw/stos/head/arch/amd64/idt.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2026, Chloe M. + * Provided under the BSD-3 clause. + * + * Description: Interrupt gate management + * Author: Chloe M. + */ + +#ifndef _MACHINE_IDT_H_ +#define _MACHINE_IDT_H_ 1 + +#define IDT_INT_GATE 0x8E +#define IDT_TRAP_GATE 0x8F +#define IDT_USER_GATE 0xEE + +#endif /* !_MACHINE_IDT_H_ */