From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sat, 2 Nov 2019 17:58:37 +0800 Subject: [U-Boot] [PATCH v3 030/108] x86: Move CPU init to before spl_init() In-Reply-To: References: <20191021033913.220758-22-sjg@chromium.org> <20191021033913.220758-30-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Oct 28, 2019 at 3:52 PM Bin Meng wrote: > > On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > > > 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 > > --- > > > > Changes in v3: None > > Changes in v2: None > > > > arch/x86/cpu/start_from_spl.S | 1 + > > arch/x86/lib/spl.c | 4 ++++ > > arch/x86/lib/tpl.c | 5 +++++ > > 3 files changed, 10 insertions(+) > > > > Reviewed-by: Bin Meng applied to u-boot-x86, thanks!