diff options
author | dzwdz | 2023-01-25 20:56:36 +0100 |
---|---|---|
committer | dzwdz | 2023-01-25 20:56:36 +0100 |
commit | c24a9376b4a048a3f9408df2d47eaad367459bd7 (patch) | |
tree | 74388b8b575719ab94e6f8eed9ad834abe7ba36b /src/kernel/arch/amd64/32 | |
parent | 93194f8645ecd9f280372ec99497ede5f0ce7cee (diff) |
kernel: consolidate some header files
Diffstat (limited to 'src/kernel/arch/amd64/32')
-rw-r--r-- | src/kernel/arch/amd64/32/gdt.c | 2 | ||||
-rw-r--r-- | src/kernel/arch/amd64/32/gdt.h | 18 |
2 files changed, 1 insertions, 19 deletions
diff --git a/src/kernel/arch/amd64/32/gdt.c b/src/kernel/arch/amd64/32/gdt.c index 33fcf7b..bd5fa48 100644 --- a/src/kernel/arch/amd64/32/gdt.c +++ b/src/kernel/arch/amd64/32/gdt.c @@ -1,5 +1,5 @@ -#include <kernel/arch/amd64/32/gdt.h> #include <kernel/arch/amd64/32/util.h> +#include <kernel/arch/amd64/boot.h> #include <stdbool.h> #include <stdint.h> diff --git a/src/kernel/arch/amd64/32/gdt.h b/src/kernel/arch/amd64/32/gdt.h deleted file mode 100644 index 4e08c88..0000000 --- a/src/kernel/arch/amd64/32/gdt.h +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -enum { - SEG_null, - // order dictated by SYSENTER - SEG_r0code, - SEG_r0data, - SEG_r3code, - SEG_r3data, - SEG_TSS, - SEG_TSS2, - - SEG_end -}; - -void gdt_init(void); - -extern struct lgdt_arg lgdt_arg; // used by amd64/32/boot.s |