Closed mobsense closed 1 month ago
Should the code:
/* return register block */ sd x0, REG_OFFSET(REG_A0)(a0) sd x0, REG_OFFSET(REG_A1)(a0)
not be:
/* return register block */ sd x0, REG_OFFSET(REG_A0)(a0) sd x1, REG_OFFSET(REG_A1)(a0)
.ie.
Should the second x0 be x1?
Same in riscv/swapcontext.S
No. We want the return registers to be saved as zero. x0 is always zero.
Thanks for the quick turn around.
Should the code:
not be:
.ie.
Should the second x0 be x1?