]> git.baikalelectronics.ru Git - uboot.git/commit
x86: Move CPU init to before spl_init()
authorSimon Glass <sjg@chromium.org>
Mon, 21 Oct 2019 03:37:55 +0000 (21:37 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Sat, 2 Nov 2019 23:20:28 +0000 (07:20 +0800)
commit5aafc76fbd08f31a0fd9a05d1d96af269a1caa42
treeefb1c2578a24c7764809cdb06881442875a0eec5
parent42a72ed7d7af3770a4e506fd7dd2e6bbbdd8bec3
x86: Move CPU init to before spl_init()

At present we call spl_init() before identifying the CPU. This is not a
good idea - e.g. if bootstage is enabled then it will try to set up the
timer which works better if the CPU is identified.

Put explicit code at each entry pointer to identify the CPU.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/start_from_spl.S
arch/x86/lib/spl.c
arch/x86/lib/tpl.c