BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 232d0f9e7dd31316a9b91cbdfec0174afce40c7e / memory / frame.c

// Related

Nucleus

Barry ACPI + APIC 232d0f9 (3 years, 3 months ago)
diff --git a/memory/frame.c b/memory/frame.c
index 512c47d..8a868ea 100644
--- a/memory/frame.c
+++ b/memory/frame.c
@@ -140,7 +140,7 @@ init_frames(uint32_t size, void *addr)
 	int i, j;
 	struct E820Entry *memMap = addr;
 	struct FrameRegion *prev = NULL, *head = regions;
-	uintptr_t bumpAlloc = PAGE_SIZE;
+	uintptr_t bumpAlloc = PAGE_SIZE * 2; /* Leave room for AP trampoline */
 	for (i = 0; i < size / sizeof(struct E820Entry); i++) {
 		if (memMap[i].baseHigh > 0
 		 || memMap[i].base > 0xFFFFFFFF