]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Allow logging to be used in SPL reliably
authorSimon Glass <sjg@chromium.org>
Sun, 16 Jul 2023 03:39:05 +0000 (21:39 -0600)
committerBin Meng <bmeng@tinylab.org>
Mon, 17 Jul 2023 09:12:26 +0000 (17:12 +0800)
commite7595aa350ae61e3dfefbde8fe3af01c12b65ccf
treefa9443c1c1d884e581ff53df41dd2ff5eb7529fb
parentfa5e2030922b561d5f9ea6c86295f5903e3d878c
x86: Allow logging to be used in SPL reliably

When global_data is relocated, log_head moves in memory, meaning that
the items in that list point to the wrong place.

Disable logging when making the change, then reenable it afterwards, so
that logging works normally.

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