]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[serial] Explicitly initialise serial console UART to NULL
authorMichael Brown <mcb30@ipxe.org>
Wed, 30 Jul 2025 12:40:36 +0000 (13:40 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 30 Jul 2025 12:40:36 +0000 (13:40 +0100)
commitbe551d420e6c839d5059290f563fb5b1fe46c6bb
tree49c8634cf0eb7c0ae486d1c01770fd4500989dcf
parenta814c4605907f68db593344facbf2541c4beedc2
[serial] Explicitly initialise serial console UART to NULL

When debugging is enabled for the device tree or memory map parsing
code, the active serial console UART variable will be accessed during
early initialisation, before the .bss section has been zeroed.

Place this variable in the .data section (by providing an explicit
initialiser), so that reading this variable is well defined even
during early initialisation.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/serial.c