[prefix] Allow prefix to specify an arbitrary maximum address for relocation

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-11-11 23:20:52 +00:00
parent 6c5f1a342b
commit 24226472b2
5 changed files with 33 additions and 38 deletions
+3 -1
View File
@@ -14,6 +14,7 @@ undiloader:
/* Save registers */
pushl %esi
pushl %edi
pushl %ebp
pushw %ds
pushw %es
pushw %bx
@@ -30,7 +31,7 @@ undiloader:
movw %es:14(%di), %ax
movl image_source, %esi
movl decompress_to, %edi
clc /* Allow relocation */
xorl %ebp, %ebp /* Allow relocation */
call install_prealloc
popw %di
/* Call UNDI loader C code */
@@ -46,6 +47,7 @@ undiloader:
popw %bx
popw %es
popw %ds
popl %ebp
popl %edi
popl %esi
lret