x86: zimage: Disable interrupts just before booting
authorSimon Glass <sjg@chromium.org>
Sat, 5 Sep 2020 20:50:42 +0000 (14:50 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:08 +0000 (11:27 +0800)
commite9d31b302d8a4b9c371c73d3385a1efd222ab4c0
tree977952a71b54ab48ff304f6bb1a8048d2dcfe701
parent00630f63cc98d5c98605fb4952b9850d9366ded9
x86: zimage: Disable interrupts just before booting

At present if an error occurs while setting up the boot, interrupts are
left disabled. Move this call later in the sequence to avoid this problem.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/zimage.c