Commit 0bfe006c authored by Kevin Wolf's avatar Kevin Wolf Committed by Aurelien Jarno
Browse files

multiboot: Fix upper memory size in multiboot info



The upper memory size field should exclude the first MB of RAM.
Signed-off-by: default avatarKevin Wolf <mail@kevin-wolf.de>
Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 64b85a8f
......@@ -306,7 +306,7 @@ int load_multiboot(void *fw_cfg,
| MULTIBOOT_FLAGS_MODULES
| MULTIBOOT_FLAGS_MMAP);
stl_p(bootinfo + MBI_MEM_LOWER, 640);
stl_p(bootinfo + MBI_MEM_UPPER, ram_size / 1024);
stl_p(bootinfo + MBI_MEM_UPPER, (ram_size / 1024) - 1024);
stl_p(bootinfo + MBI_BOOT_DEVICE, 0x8001ffff); /* XXX: use the -boot switch? */
stl_p(bootinfo + MBI_MMAP_ADDR, ADDR_E820_MAP);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment