mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Use nvram boot-args and boot-device variables also for Sparc64 (cf. r137)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@227 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -34,6 +34,14 @@ void boot(void)
|
||||
}
|
||||
|
||||
if(!path) {
|
||||
push_str("boot-device");
|
||||
push_str("/options");
|
||||
fword("(find-dev)");
|
||||
POP();
|
||||
fword("get-package-property");
|
||||
if (!POP()) {
|
||||
path = pop_fstr_copy();
|
||||
} else {
|
||||
switch (boot_device) {
|
||||
case 'a':
|
||||
path = "/obio/SUNW,fdtwo";
|
||||
@@ -50,6 +58,7 @@ void boot(void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
param = strchr(path, ' ');
|
||||
if(param) {
|
||||
@@ -57,6 +66,14 @@ void boot(void)
|
||||
param++;
|
||||
} else if (cmdline_size) {
|
||||
param = (char *)qemu_cmdline;
|
||||
} else {
|
||||
push_str("boot-args");
|
||||
push_str("/options");
|
||||
fword("(find-dev)");
|
||||
POP();
|
||||
fword("get-package-property");
|
||||
POP();
|
||||
param = pop_fstr_copy();
|
||||
}
|
||||
|
||||
printk("[sparc64] Booting file '%s' ", path);
|
||||
|
||||
Reference in New Issue
Block a user