and jumped to (void*)-1 on error.
Die properly instead.
I didn't use die() because that caused a linker error.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4776
2b7e53f0-3cfb-0310-b3e9-
8179ed1497e1
u8 *dst;
print_debug("Jumping to image.\r\n");
dst = cbfs_load_stage(filename);
+ if (dst == (void *) -1) {
+ /* We should use die() here. */
+ print_emerg("Loading stage failed!\n");
+ for (;;);
+ }
print_debug("Jumping to image.\r\n");
__asm__ volatile (