Skip to content

Commit

Permalink
fix register save bug in symbol_intern
Browse files Browse the repository at this point in the history
  • Loading branch information
devyn committed Aug 15, 2023
1 parent 6bf1147 commit c4e2e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stage1/symbol.s
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ symbol_intern:
sd s1, 0x08(sp) # s1 = a0/buf
sd s2, 0x10(sp) # s2 = a1/len
sd s3, 0x18(sp) # s3 = symbol table entry address
sd s4, 0x18(sp) # s4 = current list entry address, or temp ptr while constructing symbol
sd s4, 0x20(sp) # s4 = current list entry address, or temp ptr while constructing symbol
mv s1, a0
mv s2, a1
# calculate hash
Expand Down

0 comments on commit c4e2e84

Please sign in to comment.