Author: mcayland Date: Sat Aug 7 14:02:42 2010 New Revision: 836 URL: http://tracker.coreboot.org/trac/openbios/changeset/836
Log: Stop openbios-unix from crashing when auto-boot? is enabled.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@siriusit.co.uk
Modified: trunk/openbios-devel/arch/unix/boot.c
Modified: trunk/openbios-devel/arch/unix/boot.c ============================================================================== --- trunk/openbios-devel/arch/unix/boot.c Fri Aug 6 18:49:32 2010 (r835) +++ trunk/openbios-devel/arch/unix/boot.c Sat Aug 7 14:02:42 2010 (r836) @@ -64,9 +64,13 @@ 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;