[PATCH v4 3/9] x86: cpu: Skip init code when chain loading

Bin Meng bmeng.cn at gmail.com
Thu Apr 30 11:32:52 CEST 2020


On Sun, Apr 26, 2020 at 11:13 PM Simon Glass <sjg at chromium.org> wrote:
>
> When U-Boot is not the first-stage bootloader the interrupt and cache init
> must be skipped, as well as init for various peripherals. Update the code
> to add checks for this.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v4: None
> Changes in v3: None
> Changes in v2:
> - Drop the other check in interrupt_init() which is not needed now
>
>  arch/x86/cpu/cpu.c            | 4 +++-
>  arch/x86/cpu/i386/interrupt.c | 6 ++++--
>  arch/x86/lib/init_helpers.c   | 3 +++
>  3 files changed, 10 insertions(+), 3 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list