iPXE
|
Go to the source code of this file.
Data Structures | |
struct | e820_entry |
An INT 15,e820 memory map entry. More... | |
Macros | |
#define | real_int15_vector __use_text16 ( real_int15_vector ) |
#define | E820_TYPE_RAM 1 |
Normal memory. More... | |
#define | E820_TYPE_RSVD 2 |
Reserved and unavailable. More... | |
#define | E820_TYPE_ACPI 3 |
ACPI reclaim memory. More... | |
#define | E820_TYPE_NVS 4 |
ACPI NVS memory. More... | |
#define | e820map __use_text16 ( e820map ) |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
void | int15_fakee820 () |
Assembly routine in inline asm. More... | |
static struct segoff | __text16 (real_int15_vector) |
Original INT 15 handler. More... | |
struct e820_entry | __attribute__ ((packed)) |
static struct e820_entry | __text16_array (e820map) |
Fake e820 map. More... | |
void | fake_e820 (void) |
void | unfake_e820 (void) |
Variables | |
uint64_t | start |
Start of region. More... | |
uint64_t | len |
Length of region. More... | |
uint32_t | type |
Type of region. More... | |
#define real_int15_vector __use_text16 ( real_int15_vector ) |
Definition at line 33 of file fakee820.c.
#define E820_TYPE_RAM 1 |
Normal memory.
Definition at line 45 of file fakee820.c.
#define E820_TYPE_RSVD 2 |
Reserved and unavailable.
Definition at line 46 of file fakee820.c.
#define E820_TYPE_ACPI 3 |
ACPI reclaim memory.
Definition at line 47 of file fakee820.c.
#define E820_TYPE_NVS 4 |
ACPI NVS memory.
Definition at line 48 of file fakee820.c.
#define e820map __use_text16 ( e820map ) |
Definition at line 62 of file fakee820.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
void int15_fakee820 | ( | ) |
Assembly routine in inline asm.
Referenced by fake_e820(), and unfake_e820().
|
static |
Original INT 15 handler.
struct e820_entry __attribute__ | ( | (packed) | ) |
|
static |
Fake e820 map.
Definition at line 51 of file fakee820.c.
References E820_TYPE_ACPI, E820_TYPE_RAM, and E820_TYPE_RSVD.
void fake_e820 | ( | void | ) |
Definition at line 64 of file fakee820.c.
References __asm__(), __volatile__(), e820map, hook_bios_interrupt(), int15_fakee820(), real_int15_vector, and TEXT16_CODE.
Referenced by hide_etherboot().
void unfake_e820 | ( | void | ) |
Definition at line 95 of file fakee820.c.
References int15_fakee820(), real_int15_vector, and unhook_bios_interrupt().
Referenced by unhide_etherboot().
uint64_t start |
Start of region.
Definition at line 31 of file fakee820.c.
uint64_t len |
Length of region.
Definition at line 33 of file fakee820.c.
uint32_t type |
Type of region.
Definition at line 35 of file fakee820.c.