]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: cpu: Skip init code when chain loading
authorSimon Glass <sjg@chromium.org>
Sun, 26 Apr 2020 15:12:55 +0000 (09:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 30 Apr 2020 09:40:16 +0000 (17:40 +0800)
commit526aabec2496834450f9dab06e4f62bdc0696d33
tree6eb8b75543577367bd753b10f2aac6b48c11286e
parent52b9beb5276def9e261ded543e9f4ff9940a064e
x86: cpu: Skip init code when chain loading

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@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/cpu.c
arch/x86/cpu/i386/interrupt.c
arch/x86/lib/init_helpers.c