This website requires JavaScript.
Explore
Help
Sign In
starred
/
qemu
Watch
1
Star
0
Fork
0
You've already forked qemu
mirror of
https://github.com/qemu/qemu.git
synced
2026-07-09 10:06:23 +00:00
Code
Issues
380
Packages
Projects
Releases
Wiki
Activity
Files
55d41b16eec5041bf94de9b687bf51a67fdf736d
qemu
/
pc-bios
/
linuxboot.bin
4 lines
1.0 KiB
Plaintext
Raw
Normal View
History
Unescape
Escape
linuxboot: fix loading old kernels Old kernels that used high memory only allowed the initrd to be in the first 896MB of memory. If you load the initrd above, they complain that "initrd extends beyond end of memory". In order to fix this, while not breaking machines with small amounts of memory fixed by cdebec5 (linuxboot: compute initrd loading address, 2014-10-06), we need to distinguish two cases. If pc.c placed the initrd at end of memory, use the new algorithm based on the e801 memory map. If instead pc.c placed the initrd at the maximum address specified by the bzImage, leave it there. The only interesting part is that the low-memory info block is now loaded very early, in real mode, and thus the 32-bit address has to be converted into a real mode segment. The initrd address is also patched in the info block before entering real mode, it is simpler that way. This fixes booting the RHEL4.8 32-bit installation image with 1GB of RAM. Cc: qemu-stable@nongnu.org Cc: mst@redhat.com Cc: jsnow@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-12-11 02:17:03 +01:00
U
<EFBFBD>
<02>