Browse Source

[prefix] Align INT 15,88 temporary decompression area to a page boundary

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
a4f5c4647e
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/arch/x86/prefix/libprefix.S

+ 1
- 0
src/arch/x86/prefix/libprefix.S View File

827
 	movw	%ax, %di
827
 	movw	%ax, %di
828
 	addl	$0x400, %edi
828
 	addl	$0x400, %edi
829
 	subl	$_textdata_memsz_kb, %edi
829
 	subl	$_textdata_memsz_kb, %edi
830
+	andw	$~0x03, %di
830
 	shll	$10, %edi
831
 	shll	$10, %edi
831
 	/* Sanity check: if we have ended up below 1MB, use 1MB */
832
 	/* Sanity check: if we have ended up below 1MB, use 1MB */
832
 	cmpl	$0x100000, %edi
833
 	cmpl	$0x100000, %edi

Loading…
Cancel
Save