Closed aw closed 2 years ago
I realize some work is required to convert certain registers to variables, which would make these changes pointless. We can close this PR in the meantime.
Alright, yea that makes sense. I'm planning to fix the variables here in next few weeks.
This PR changes register assignments for
IP
andRSP
to point tos1
ands2
respectively, and changes the saved register assignments for the remaining variable registers (STATE, TIB, etc..
).According to the RISC-V ABI calling convention, registers
gp (x3)
andtp (x4)
should not be used.I also found the use of
s8
in the board files, and changed those toSAVED0
which now points tos10
instead.We lose two "extra" saved registers with this change, but that probably doesn't matter unless more complex Assembly code is to be written.