From c62d099b4bcf4955910df2af100eb10aba4f7a58 Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Sat, 7 Aug 2010 12:02:42 +0000 Subject: [PATCH] Stop openbios-unix from crashing when auto-boot? is enabled. Signed-off-by: Mark Cave-Ayland git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@836 f158a5a8-5612-0410-a976-696ce0be7e32 --- arch/unix/boot.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/unix/boot.c b/arch/unix/boot.c index 170a00a..f4a2942 100644 --- a/arch/unix/boot.c +++ b/arch/unix/boot.c @@ -64,9 +64,13 @@ void void boot( void ) { - char *path=pop_fstr_copy(); + char *path; void *entry; + /* Copy the incoming path */ + fword("2dup"); + path = pop_fstr_copy(); + if(!path) { printk("[unix] Booting default not supported.\n"); return;