From 38d5acbb1a8751964f16ab4c0a8befd16e65849c Mon Sep 17 00:00:00 2001 From: Chloe M Date: Fri, 10 Jul 2026 21:10:47 -0400 Subject: [PATCH] ptos/amd64: Add IDT gate types Signed-off-by: Chloe M --- service/ptos/head/arch/amd64/idt.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 service/ptos/head/arch/amd64/idt.h diff --git a/service/ptos/head/arch/amd64/idt.h b/service/ptos/head/arch/amd64/idt.h new file mode 100644 index 0000000..72b9cb0 --- /dev/null +++ b/service/ptos/head/arch/amd64/idt.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2026, Chloe M. + * Provided under the BSD-3 clause. + * + * Description: AMD64 interrupt gate management + * Author: Chloe M. + */ + +#ifndef _MACHINE_IDT_H_ +#define _MACHINE_IDT_H_ 1 + +#include + +/* Interrupt gate types */ +#define IDT_INT_GATE 0x8E +#define IDT_TRAP_GATE 0x8F +#define IDT_USER_GATE 0xEE + +#endif /* !_MACHINE_IDT_H_ */