summaryrefslogtreecommitdiffstats
path: root/src/image
diff options
context:
space:
mode:
authorMichael Brown2013-03-15 16:22:57 +0100
committerMichael Brown2013-03-15 16:34:50 +0100
commit747e9eb6f39c4e755b5f3ed0cbc82e1d04b0124a (patch)
tree0ab788cf1a18e7bf25817a45819fbe62b54b3608 /src/image
parent[efi] Fix building with newer binutils (diff)
downloadipxe-747e9eb6f39c4e755b5f3ed0cbc82e1d04b0124a.tar.gz
ipxe-747e9eb6f39c4e755b5f3ed0cbc82e1d04b0124a.tar.xz
ipxe-747e9eb6f39c4e755b5f3ed0cbc82e1d04b0124a.zip
[lkrnprefix] Allow relocation when no initrd is present
Commit 2629b7e ("[pcbios] Inhibit all calls to INT 15,e820 and INT 15,e801 during POST") introduced a regression into .lkrn images when used with no corresponding initrd. Specifically, the semantics of the "maximum address for relocation" value passed to install_prealloc() in %ebp changed so that zero became a special value meaning "inhibit use of INT 15,e820 and INT 15,e801". The %ebp value meaing "no upper limit on relocation" was changed from zero to 0xffffffff, and all prefixes providing fixed values for %ebp were updated to match the new semantics. The .lkrn prefix provides the initrd base address as the maximum address for relocation. When no initrd is present, this address will be zero, and so will unintentionally trigger the "inhibit INT 15,e820 and INT 15,e801" behaviour. Fix by explicitly setting %ebp to 0xffffffff if no initrd is present before calling install_prealloc(). Reported-by: Ján ONDREJ (SAL) <ondrejj@salstar.sk> Tested-by: Ján ONDREJ (SAL) <ondrejj@salstar.sk> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
0 files changed, 0 insertions, 0 deletions