x86: spl: Use hang() instead of a while() loop
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:38 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:35 +0000 (13:57 +0800)
commit14dd93beb71727edf0c7ee288f2ee1ceceb6317a
tree98a91a8a362a6b0814f81ca17bf4a75430564af3
parente46d00c77cd5a756e8cf3fae3b34eaa9ec012f0d
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>
arch/x86/lib/spl.c
arch/x86/lib/tpl.c