]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Provide a millicode variant of print_message()
authorMichael Brown <mcb30@ipxe.org>
Wed, 7 May 2025 11:56:20 +0000 (12:56 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 7 May 2025 12:08:49 +0000 (13:08 +0100)
commit9445a9ff40ba72a14f38d2bf492a4915d6d913aa
tree85bbfd8cd71e413aaee0c5403eb1b6e0f91f4b74
parentdc9e6f0edf1ffd7c88c6112c638e7a2b013cf89a
[riscv] Provide a millicode variant of print_message()

RISC-V has a millicode calling convention that allows for the use of
an alternative link register x5/t0.  With sufficient care, this allows
for two levels of subroutine call even when no stack is available.

Provide both standard and millicode entry points for print_message(),
and use the millicode entry point to allow for printing debug messages
from libprefix.S itself.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/prefix/libprefix.S
src/arch/riscv/prefix/sbiprefix.S