]> git.baikalelectronics.ru Git - uboot.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)
commit231f4d71fb9bbf4044d6963f608d2aa3c5a197c0
treefa9443c1c1d884e581ff53df41dd2ff5eb7529fb
parente96410e6f12f85452dd6b313111e253a53bd607e
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