diff options
author | Simon Glass <sjg@chromium.org> | 2019-09-25 17:11:38 +0300 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-10-08 08:57:35 +0300 |
commit | 14dd93beb71727edf0c7ee288f2ee1ceceb6317a (patch) | |
tree | 98a91a8a362a6b0814f81ca17bf4a75430564af3 /arch/x86/lib/spl.c | |
parent | e46d00c77cd5a756e8cf3fae3b34eaa9ec012f0d (diff) | |
download | u-boot-14dd93beb71727edf0c7ee288f2ee1ceceb6317a.tar.xz |
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>
Diffstat (limited to 'arch/x86/lib/spl.c')
-rw-r--r-- | arch/x86/lib/spl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index 5d5d1a9ca7..01a96d294b 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c @@ -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 |