ptos/amd64: Add IDT gate types

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-10 21:10:47 -04:00
parent 8c0a1da9a8
commit 38d5acbb1a
+19
View File
@@ -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 <ptdef.h>
/* Interrupt gate types */
#define IDT_INT_GATE 0x8E
#define IDT_TRAP_GATE 0x8F
#define IDT_USER_GATE 0xEE
#endif /* !_MACHINE_IDT_H_ */