|
iPXE
|
Go to the source code of this file.
Macros | |
| #define | MAX_ADDR (0xfff00000UL) |
| #define | ALIGN 4096 |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| __asmcall void | relocate (struct i386_all_regs *ix86) |
| Relocate iPXE. | |
Variables | |
| char | _textdata [] |
| char | _etextdata [] |
| #define MAX_ADDR (0xfff00000UL) |
Definition at line 24 of file relocate.c.
Referenced by relocate().
| #define ALIGN 4096 |
Definition at line 30 of file relocate.c.
Referenced by relocate().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
References _etextdata, and _textdata.
| __asmcall void relocate | ( | struct i386_all_regs * | ix86 | ) |
Relocate iPXE.
| ebp | Maximum address to use for relocation |
This finds a suitable location for iPXE near the top of 32-bit address space, and returns the physical address of the new location to the prefix in edi.
Definition at line 44 of file relocate.c.
References __asmcall, _etextdata, _textdata, ALIGN, DBGC, DBGC_MEMMAP, i386_regs::ebp, i386_regs::ecx, i386_regs::edi, end, i386_regs::esi, for_each_memmap_from, max, MAX_ADDR, memmap_dump_all(), memmap_is_usable(), memmap_size(), memmap_region::min, i386_all_regs::regs, size, and start.
|
extern |
Referenced by FILE_LICENCE(), hide_textdata(), int15_sync(), and relocate().
|
extern |
Referenced by FILE_LICENCE(), hide_textdata(), and relocate().