Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/efi/loader/main.c
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
#include <smbios.h> | #include <smbios.h> | ||||
#ifdef EFI_ZFS_BOOT | #ifdef EFI_ZFS_BOOT | ||||
#include <libzfs.h> | #include <libzfs.h> | ||||
#include "efizfs.h" | #include "efizfs.h" | ||||
#endif | #endif | ||||
#include "efi_drivers.h" | |||||
#include "loader_efi.h" | #include "loader_efi.h" | ||||
extern char bootprog_info[]; | extern char bootprog_info[]; | ||||
struct arch_switch archsw; /* MI/MD interface boundary */ | struct arch_switch archsw; /* MI/MD interface boundary */ | ||||
EFI_GUID acpi = ACPI_TABLE_GUID; | EFI_GUID acpi = ACPI_TABLE_GUID; | ||||
EFI_GUID acpi20 = ACPI_20_TABLE_GUID; | EFI_GUID acpi20 = ACPI_20_TABLE_GUID; | ||||
▲ Show 20 Lines • Show All 280 Lines • ▼ Show 20 Lines | #endif | ||||
* printf() etc. once this is done. | * printf() etc. once this is done. | ||||
*/ | */ | ||||
cons_probe(); | cons_probe(); | ||||
/* | /* | ||||
* Initialise the block cache. Set the upper limit. | * Initialise the block cache. Set the upper limit. | ||||
*/ | */ | ||||
bcache_init(32768, 512); | bcache_init(32768, 512); | ||||
for (i = 0; efi_drivers[i] != NULL; i++) { | |||||
if (efi_drivers[i]->init != NULL) | |||||
efi_drivers[i]->init(); | |||||
} | |||||
/* | /* | ||||
* Parse the args to set the console settings, etc | * Parse the args to set the console settings, etc | ||||
* boot1.efi passes these in, if it can read /boot.config or /boot/config | * boot1.efi passes these in, if it can read /boot.config or /boot/config | ||||
* or iPXE may be setup to pass these in. | * or iPXE may be setup to pass these in. | ||||
* | * | ||||
* Loop through the args, and for each one that contains an '=' that is | * Loop through the args, and for each one that contains an '=' that is | ||||
* not the first character, add it to the environment. This allows | * not the first character, add it to the environment. This allows | ||||
▲ Show 20 Lines • Show All 578 Lines • Show Last 20 Lines |