mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 08:30:50 +09:00
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>
This commit is contained in:
parent
00630f63cc
commit
e9d31b302d
@ -333,7 +333,6 @@ int do_zboot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||||||
struct boot_params *base_ptr;
|
struct boot_params *base_ptr;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
disable_interrupts();
|
|
||||||
memset(&state, '\0', sizeof(state));
|
memset(&state, '\0', sizeof(state));
|
||||||
if (argc >= 2) {
|
if (argc >= 2) {
|
||||||
/* argv[1] holds the address of the bzImage */
|
/* argv[1] holds the address of the bzImage */
|
||||||
@ -369,6 +368,7 @@ int do_zboot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disable_interrupts();
|
||||||
/* we assume that the kernel is in place */
|
/* we assume that the kernel is in place */
|
||||||
return boot_linux_kernel((ulong)base_ptr, state.load_address, false);
|
return boot_linux_kernel((ulong)base_ptr, state.load_address, false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user