mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Stop openbios-unix from crashing when auto-boot? is enabled.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@836 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
3f121048da
commit
c62d099b4b
@@ -64,9 +64,13 @@ void
|
|||||||
void
|
void
|
||||||
boot( void )
|
boot( void )
|
||||||
{
|
{
|
||||||
char *path=pop_fstr_copy();
|
char *path;
|
||||||
void *entry;
|
void *entry;
|
||||||
|
|
||||||
|
/* Copy the incoming path */
|
||||||
|
fword("2dup");
|
||||||
|
path = pop_fstr_copy();
|
||||||
|
|
||||||
if(!path) {
|
if(!path) {
|
||||||
printk("[unix] Booting default not supported.\n");
|
printk("[unix] Booting default not supported.\n");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user