Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/efi/loader/main.c
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | #endif | ||||
* XXX Chicken-and-egg problem; we want to have console output | * XXX Chicken-and-egg problem; we want to have console output | ||||
* early, but some console attributes may depend on reading from | * early, but some console attributes may depend on reading from | ||||
* eg. the boot device, which we can't do yet. We can use | * eg. the boot device, which we can't do yet. We can use | ||||
* printf() etc. once this is done. | * printf() etc. once this is done. | ||||
*/ | */ | ||||
cons_probe(); | cons_probe(); | ||||
/* | /* | ||||
* Initialise the block cache. Set the upper limit. | |||||
*/ | |||||
bcache_init(32768, 512); | |||||
/* | |||||
* 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 | ||||
* loader and kernel env vars to be passed on the command line. Convert | * loader and kernel env vars to be passed on the command line. Convert | ||||
* args from UCS-2 to ASCII (16 to 8 bit) as they are copied. | * args from UCS-2 to ASCII (16 to 8 bit) as they are copied. | ||||
▲ Show 20 Lines • Show All 533 Lines • Show Last 20 Lines |