From bf7873fb203bc718fb805b7857c793c420719ce9 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 5 Sep 2007 01:59:27 +0000 Subject: [PATCH] run_address gets called with entry=0. This patch fixes it. Signed-off-by: Alex Beregszaszi Acked-by: Stefan Reinauer git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@491 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/stage1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/stage1.c b/arch/x86/stage1.c index ac1a0e8410..5753d9846f 100644 --- a/arch/x86/stage1.c +++ b/arch/x86/stage1.c @@ -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");