]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[libc] Display assertion failure message before incrementing counter
authorMichael Brown <mcb30@ipxe.org>
Fri, 9 May 2025 11:03:29 +0000 (12:03 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 9 May 2025 13:36:00 +0000 (14:36 +0100)
commit1d58d928fe97e9095e7e91b727ea36fcea9d2567
tree3e5fef7d6274ee2b0585c301b723e2a6974a8432
parent8fe3c68b31f4ffd4cde367fec12db09468d1a1d6
[libc] Display assertion failure message before incrementing counter

During early initialisation on some platforms, the .data and .bss
sections may not yet be writable.

Display the assertion message before attempting to increment the
assertion failure counter, since writing to the assertion counter may
trigger a CPU exception that ends up resetting the system.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/assert.h