Message ID | 1439044022-14481-10-git-send-email-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Simon Glass |
Headers | show |
On Sat, Aug 8, 2015 at 10:27 PM, Simon Glass <sjg@chromium.org> wrote: > We should not fiddle with interrupts or the FSP when running as an EFI > payload. Detect this and skip this code. > > Signed-off-by: Simon Glass <sjg@chromium.org> > --- > > Changes in v2: > - Add new patch to support running as an EFI payload > > arch/x86/cpu/baytrail/valleyview.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c > index bbb352f..3d337d5 100644 > --- a/arch/x86/cpu/baytrail/valleyview.c > +++ b/arch/x86/cpu/baytrail/valleyview.c > @@ -44,6 +44,8 @@ int arch_misc_init(void) > { > int ret; > > + if (!ll_boot_init()) > + return 0; > ret = pirq_init(); > if (ret) > return ret; > -- Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c index bbb352f..3d337d5 100644 --- a/arch/x86/cpu/baytrail/valleyview.c +++ b/arch/x86/cpu/baytrail/valleyview.c @@ -44,6 +44,8 @@ int arch_misc_init(void) { int ret; + if (!ll_boot_init()) + return 0; ret = pirq_init(); if (ret) return ret;
We should not fiddle with interrupts or the FSP when running as an EFI payload. Detect this and skip this code. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v2: - Add new patch to support running as an EFI payload arch/x86/cpu/baytrail/valleyview.c | 2 ++ 1 file changed, 2 insertions(+)