mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 00:07:27 +03:00
[romprefix] Remove .hrom prefix
The .hrom prefix provides an experimental mechanism for reducing option ROM space usage on systems where PMM allocation fails, by pretending that PMM allocation succeeded and gave us an address fixed at compilation time. This is unreliable, and potentially dangerous. In particular, when multiple gPXE ROMs are present in a system, each gPXE ROM will assume ownership of the same fixed address, resulting in undefined behaviour. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -352,7 +352,6 @@ got_pmm: /* PMM allocation succeeded */
|
||||
call print_character
|
||||
movw %si, %ax
|
||||
call print_hex_byte
|
||||
pmm_copy:
|
||||
/* Copy ROM to PMM block */
|
||||
xorw %ax, %ax
|
||||
movw %ax, %es
|
||||
@@ -364,19 +363,7 @@ pmm_copy:
|
||||
movl %edi, decompress_to
|
||||
/* Shrink ROM */
|
||||
movb $_prefix_memsz_sect, romheader_size
|
||||
#ifdef SHRINK_WITHOUT_PMM
|
||||
jmp pmm_done
|
||||
pmm_fail:
|
||||
/* Print marker and copy ourselves to high memory */
|
||||
movl $HIGHMEM_LOADPOINT, image_source
|
||||
xorw %di, %di
|
||||
movb $( '!' ), %al
|
||||
call print_character
|
||||
jmp pmm_copy
|
||||
pmm_done:
|
||||
#else
|
||||
pmm_fail:
|
||||
#endif
|
||||
/* Restore upper register halves */
|
||||
popal
|
||||
no_pmm:
|
||||
|
||||
Reference in New Issue
Block a user