mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
x86: spl: Use hang() instead of a while() loop
Use the standard hang() function when booting fails since this implements the defined U-Boot behaviour for this situation. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
e46d00c77c
commit
14dd93beb7
2 changed files with 2 additions and 4 deletions
|
@ -183,8 +183,7 @@ void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
|
|||
printf("Jumping to 64-bit U-Boot: Note many features are missing\n");
|
||||
ret = cpu_jump_to_64bit_uboot(spl_image->entry_point);
|
||||
debug("ret=%d\n", ret);
|
||||
while (1)
|
||||
;
|
||||
hang();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -108,8 +108,7 @@ void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
|
|||
{
|
||||
printf("Jumping to U-Boot SPL at %lx\n", (ulong)spl_image->entry_point);
|
||||
jump_to_spl(spl_image->entry_point);
|
||||
while (1)
|
||||
;
|
||||
hang();
|
||||
}
|
||||
|
||||
void spl_board_init(void)
|
||||
|
|
Loading…
Add table
Reference in a new issue