|
ArvernOS
|
Data Structures | |
| struct | hvm_start_info_t |
| struct | hvm_memmap_table_entry |
| struct | hvm_modlist_entry |
| struct | pvh_mmap_t |
Macros | |
| #define | HVM_START_MAGIC_VALUE 0x336ec578 |
| Value of hvm_start_info.magic when the structure is valid. | |
Functions | |
| void | pvh_init (hvm_start_info_t *info) |
| const char * | pvh_get_cmdline () |
| pvh_mmap_t * | pvh_get_mmap () |
| void | pvh_get_modules_range (uintptr_t *start, uintptr_t *end) |
| void | pvh_get_boot_info (boot_info_t *info) |
This module manages the PVH boot information, which is passed by the bootloader in ebx when the kernel is loaded using the PVH ELF note (see asm/notes.asm).
| void pvh_get_boot_info | ( | boot_info_t * | info | ) |
Fills the boot information from the PVH boot information.
| info | the boot information to fill |
| const char * pvh_get_cmdline | ( | ) |
Returns the command line, if any.
| pvh_mmap_t * pvh_get_mmap | ( | ) |
Returns the physical memory map reported by the bootloader.
| void pvh_get_modules_range | ( | uintptr_t * | start, |
| uintptr_t * | end ) |
Returns the physical address range spanned by all boot modules (e.g. the init ramdisk), if any.
| start | set to the start address of the range, or 0 if there is no boot module |
| end | set to the end address (exclusive) of the range, or 0 if there is no boot module |
| void pvh_init | ( | hvm_start_info_t * | info | ) |
Reads the PVH boot information.
| info | the PVH boot information |