Print the device tree node names

This commit is contained in:
2025-07-05 00:42:04 +02:00
parent 6c6a65c169
commit 98a96fba86
4 changed files with 280 additions and 10 deletions

View File

@ -178,8 +178,8 @@ _is_alnum:
# Prints a string.
#
# Parameters:
# a0 - Length of the string.
# a1 - String pointer.
# a0 - String pointer.
# a1 - Length of the string.
.type write_s, @function
write_s:
# Prologue.
@ -191,8 +191,8 @@ write_s:
sw s1, 20(sp)
sw s2, 16(sp)
mv s1, a0
mv s2, a1
mv s1, a1
mv s2, a0
.Lwrite_s_if:
beqz s1, .Lwrite_s_end
@ -334,7 +334,8 @@ write_i:
addi a1, sp, 0
call _print_i
addi a1, sp, 0
mv a1, a0
addi a0, sp, 0
call write_s
lw ra, 28(sp)