Explorar el Código

[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 hace 10 años
padre
commit
a4f5c4647e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/arch/x86/prefix/libprefix.S

+ 1
- 0
src/arch/x86/prefix/libprefix.S Ver fichero

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…
Cancelar
Guardar