mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix up SPARC32 boot from CDROM.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@806 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
004dc4cf85
commit
c0c7231b2d
@@ -157,14 +157,7 @@ void boot(void)
|
||||
int result;
|
||||
|
||||
if(!path) {
|
||||
push_str("boot-device");
|
||||
push_str("/options");
|
||||
fword("(find-dev)");
|
||||
POP();
|
||||
fword("get-package-property");
|
||||
if (!POP()) {
|
||||
path = pop_fstr_copy();
|
||||
} else {
|
||||
/* No path specified, so grab defaults from firmware */
|
||||
switch (boot_device) {
|
||||
case 'a':
|
||||
path = strdup("/obio/SUNW,fdtwo");
|
||||
@@ -189,7 +182,6 @@ void boot(void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
obp_arg.boot_dev_ctrl = 0;
|
||||
obp_arg.boot_dev_unit = unit;
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include "boot.h"
|
||||
#include "packages/video.h"
|
||||
#define NO_QEMU_PROTOS
|
||||
#define NO_OPENBIOS_PROTOS
|
||||
#include "arch/common/fw_cfg.h"
|
||||
|
||||
#define MEMORY_SIZE (128*1024) /* 16K ram for hosted system */
|
||||
@@ -166,6 +165,8 @@ arch_init( void )
|
||||
push_str("bootargs");
|
||||
fword("property");
|
||||
|
||||
boot_device = fw_cfg_read_i16(FW_CFG_BOOT_DEVICE);
|
||||
|
||||
bind_func("platform-boot", boot );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user