IDT access levels and gate types
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
9a1e9b1084
commit
5bbda188c6
@ -51,6 +51,16 @@
|
|||||||
#define KGDT_TYPE_CODE (0x10 | KGDT_DESCRIPTOR_CODE | KGDT_DESCRIPTOR_EXECUTE_READ)
|
#define KGDT_TYPE_CODE (0x10 | KGDT_DESCRIPTOR_CODE | KGDT_DESCRIPTOR_EXECUTE_READ)
|
||||||
#define KGDT_TYPE_DATA (0x10 | KGDT_DESCRIPTOR_READ_WRITE)
|
#define KGDT_TYPE_DATA (0x10 | KGDT_DESCRIPTOR_READ_WRITE)
|
||||||
|
|
||||||
|
/* IDT access levels */
|
||||||
|
#define KIDT_ACCESS_RING0 0x00
|
||||||
|
#define KIDT_ACCESS_RING3 0x60
|
||||||
|
|
||||||
|
/* IDT gate types */
|
||||||
|
#define KIDT_TYPE_TASK 0x05
|
||||||
|
#define KIDT_TYPE_CALL 0x0C
|
||||||
|
#define KIDT_TYPE_INTERRUPT 0x0E
|
||||||
|
#define KIDT_TYPE_TRAP 0x0F
|
||||||
|
|
||||||
/* TSS Offsets */
|
/* TSS Offsets */
|
||||||
#define KTSS_ESP0 0x04
|
#define KTSS_ESP0 0x04
|
||||||
#define KTSS_CR3 0x1C
|
#define KTSS_CR3 0x1C
|
||||||
|
Loading…
Reference in New Issue
Block a user