Add KERNEL_DRIVE default value
This commit is contained in:
parent
1cbd6fb2e9
commit
573b3308e1
@ -62,8 +62,12 @@ void main(int boot_drive) {
|
||||
|
||||
if (config_loaded) {
|
||||
char buf[32];
|
||||
config_get_value(buf, 32, (void*)0x100000, "KERNEL_DRIVE");
|
||||
if (!config_get_value(buf, 32, (void*)0x100000, "KERNEL_DRIVE")) {
|
||||
print("KERNEL_DRIVE not specified, using boot drive (%x)", boot_drive);
|
||||
drive = boot_drive;
|
||||
} else {
|
||||
drive = (int)strtoui(buf);
|
||||
}
|
||||
config_get_value(buf, 32, (void*)0x100000, "KERNEL_PARTITION");
|
||||
part = (int)strtoui(buf);
|
||||
config_get_value(path, 128, (void*)0x100000, "KERNEL_PATH");
|
||||
|
@ -1,4 +1,3 @@
|
||||
KERNEL_DRIVE=128
|
||||
KERNEL_PARTITION=0
|
||||
KERNEL_PATH=test.elf
|
||||
KERNEL_PROTO=stivale
|
||||
|
Loading…
Reference in New Issue
Block a user