kernel: load at 16 MB, clear of what firmware keeps low
From 1 MB the 34 MB kernel ran across 8 MB, where OVMF keeps ACPI NVS memory that outlives the firmware -- so it was overwritten on every boot, after ExitBootServices. Firmware leaves its leftovers low; above 16 MB is where a machine is most reliably empty. KERNPHYS in memlayout.h, and kernel.ld agreeing with it. Nothing else named the old address. Under OVMF the range is now only boot-services memory: staged, copied home after the firmware exits, no warning. Boots as a CD and as a USB disk, 1 and 4 CPUs. The 15 MB below the kernel is not given to the page allocator yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S1giNvrHTrPMPw7V6x1kQ4
This commit is contained in:
parent
93d3b123c5
commit
5ed8f1b0d5
4 changed files with 14 additions and 5 deletions
|
|
@ -34,7 +34,7 @@
|
|||
//
|
||||
// 0x30000 is clear of stage2 (loaded at 0x7E00 and well under 0xA000), the
|
||||
// multiboot kernel-search buffer at 0x10000-0x14000, and the kernel's own load
|
||||
// address at 0x100000.
|
||||
// address at KERNPHYS, 16 MB.
|
||||
//
|
||||
// Both loaders write it, so a field's meaning must not depend on which one did.
|
||||
// Where they genuinely differ -- the BIOS path knows what medium it booted
|
||||
|
|
|
|||
Loading…
Reference in a new issue