[osboot] copy our memtable to zeropage, not the other way 'round Change-Id: I4ec156c0f7367090ac326905a3c086ea88c13300
diff --git a/src/osboot.c b/src/osboot.c index c954645..b8b8c0a 100644 --- a/src/osboot.c +++ b/src/osboot.c
@@ -169,7 +169,7 @@ } kernel_t; void install_memmap(kernel_t *k, struct e820entry *memmap, unsigned count) { - memcpy(memmap, k->zeropage + ZP_E820_TABLE, sizeof(*memmap) * count); + memcpy(k->zeropage + ZP_E820_TABLE, memmap, sizeof(*memmap) * count); ZP8(k->zeropage, ZP_E820_COUNT) = count; }