From 451984595e1d802dc17652896f804d6b6b1362c8 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 27 Jan 2024 02:17:18 -0500 Subject: fixes --- src/arch/amd64/acpi.c | 3 ++- src/arch/amd64/shim.c | 8 -------- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'src/arch/amd64') diff --git a/src/arch/amd64/acpi.c b/src/arch/amd64/acpi.c index 42c3e01..eb150fe 100644 --- a/src/arch/amd64/acpi.c +++ b/src/arch/amd64/acpi.c @@ -1,10 +1,11 @@ -#include "arch/amd64/bindings.h" #include #include #include #include +#include "bindings.h" + /* global state, idk a better way rn */ struct acpi_state state; diff --git a/src/arch/amd64/shim.c b/src/arch/amd64/shim.c index 0c2d418..e28291b 100644 --- a/src/arch/amd64/shim.c +++ b/src/arch/amd64/shim.c @@ -1,13 +1,5 @@ #include -#define PG_PRESENT 0x0000'0000'0000'0001 -#define PG_READ_WRITE 0x0000'0000'0000'0002 -#define PG_USER_SUPERVISE 0x0000'0000'0000'0004 -#define PG_WRITE_THROUGH 0x0000'0000'0000'0008 -#define PG_CACHE_DISABLE 0x0000'0000'0000'0010 -#define PG_ACCESSED 0x0000'0000'0000'0020 -#define PG_EXECUTE_DISABLE 0x8000'0000'0000'0000 - // PAGE MAP LEVEL 4 ENTRY struct pml4 { uint64_t present : 1; -- cgit v1.2.3-freya