Print the device tree node names
This commit is contained in:
11
common.s
11
common.s
@ -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)
|
||||
|
Reference in New Issue
Block a user