diff --git a/core/mem.c b/core/mem.c index c33d552..37f068e 100644 --- a/core/mem.c +++ b/core/mem.c @@ -36,7 +36,7 @@ int memSetup(paddr_t upperMemKB, paddr_t *firstUsed, paddr_t *lastMemUsedOut) // Remove addr from 0 to PAGE_SIZE so we can return 0 for no page available memAddBank(0, PAGE_SIZE, 0); - memAddBank(*lastMemUsedOut, *lastMemUsedOut, 0); + memAddBank(*firstUsed, *lastMemUsedOut, 0); return 0; }