summaryrefslogtreecommitdiff
path: root/src/arch/amd64/shim.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-01-27 05:16:57 -0500
committerFreya Murphy <freya@freyacat.org>2024-01-27 05:16:57 -0500
commit09b43900045e256c8907d048063e6a8d3c638f69 (patch)
tree15e2fe999ef54fde30db50a4417fce3d13433e0b /src/arch/amd64/shim.c
parentmore lib fns (diff)
downloadcorn-09b43900045e256c8907d048063e6a8d3c638f69.tar.gz
corn-09b43900045e256c8907d048063e6a8d3c638f69.tar.bz2
corn-09b43900045e256c8907d048063e6a8d3c638f69.zip
qemu fb
Diffstat (limited to 'src/arch/amd64/shim.c')
-rw-r--r--src/arch/amd64/shim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/amd64/shim.c b/src/arch/amd64/shim.c
index 1e73525..cb0b1d5 100644
--- a/src/arch/amd64/shim.c
+++ b/src/arch/amd64/shim.c
@@ -57,7 +57,8 @@ static int get_maxphysaddr() {
__cpuid(0x80000008, eax, ebx, ecx, edx);
return eax & 0xFF;
}
-
+#define PREFERRED_VY 4096
+#define PREFERRED_B 32
// entry point for amd64
void* amd64_shim(void *boot_info) {
struct pml4e *pml4 = (struct pml4e *)0x1000;