summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/prefix
diff options
context:
space:
mode:
authorMichael Brown2016-02-17 16:26:31 +0100
committerMichael Brown2016-02-18 14:27:47 +0100
commita4f5c4647e5c3381dcb942d7e84c4f159e963580 (patch)
tree7efa9d18dc7779e1c943c1bc4b17604809a60845 /src/arch/x86/prefix
parent[librm] Discard argument as part of return from real_call() (diff)
downloadipxe-a4f5c4647e5c3381dcb942d7e84c4f159e963580.tar.gz
ipxe-a4f5c4647e5c3381dcb942d7e84c4f159e963580.tar.xz
ipxe-a4f5c4647e5c3381dcb942d7e84c4f159e963580.zip
[prefix] Align INT 15,88 temporary decompression area to a page boundary
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/x86/prefix')
-rw-r--r--src/arch/x86/prefix/libprefix.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/x86/prefix/libprefix.S b/src/arch/x86/prefix/libprefix.S
index 897a6656..0c833282 100644
--- a/src/arch/x86/prefix/libprefix.S
+++ b/src/arch/x86/prefix/libprefix.S
@@ -827,6 +827,7 @@ payload_death_message:
movw %ax, %di
addl $0x400, %edi
subl $_textdata_memsz_kb, %edi
+ andw $~0x03, %di
shll $10, %edi
/* Sanity check: if we have ended up below 1MB, use 1MB */
cmpl $0x100000, %edi