run_address gets called with entry=0. This patch fixes it.

Signed-off-by: Alex Beregszaszi <alex@rtfs.hu>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@491 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-09-05 01:59:27 +00:00
commit bf7873fb20

View file

@ -189,7 +189,8 @@ void __attribute__((stdcall)) stage1_main(u32 bist)
entry = newentry;
}
printk(BIOS_SPEW, "all loaded, entry %p\n", entry);
run_address(entry);
if (entry)
run_address(entry);
die("FATAL: No usable payload found.\n");