diff options
author | Ben Stoltz <stoltz@google.com> | 2015-08-04 12:33:46 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-05 08:44:06 -0600 |
commit | 3dcdd17b43c5cfd3a216169948dfd08d6741c631 (patch) | |
tree | 662ddb941487ea3be651530fc6ad9f74e8f6632d /arch/x86/cpu/interrupts.c | |
parent | ed3b4d37368694e682c2c24f2fd72414d3f645ae (diff) | |
download | u-boot-imx-3dcdd17b43c5cfd3a216169948dfd08d6741c631.zip u-boot-imx-3dcdd17b43c5cfd3a216169948dfd08d6741c631.tar.gz u-boot-imx-3dcdd17b43c5cfd3a216169948dfd08d6741c631.tar.bz2 |
x86: Add support for U-Boot as an EFI application
Add the required x86 glue code. This includes the initial start-up,
relocation and jumping to efi_main(). We also need to avoid fiddling with
interrupts.
Signed-off-by: Ben Stoltz <stoltz@google.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/interrupts.c')
-rw-r--r-- | arch/x86/cpu/interrupts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/cpu/interrupts.c b/arch/x86/cpu/interrupts.c index 3a9c2d4..a112938 100644 --- a/arch/x86/cpu/interrupts.c +++ b/arch/x86/cpu/interrupts.c @@ -242,6 +242,11 @@ int disable_interrupts(void) int interrupt_init(void) { + /* + * When running as an EFI application we are not in control of + * interrupts and should leave them alone. + */ +#ifndef CONFIG_EFI_APP /* Just in case... */ disable_interrupts(); @@ -255,6 +260,7 @@ int interrupt_init(void) /* It is now safe to enable interrupts */ enable_interrupts(); +#endif return 0; } |