We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 275ec71 commit c1f3245Copy full SHA for c1f3245
arch/risc-v/src/common/fork.S
@@ -117,8 +117,8 @@ up_fork:
117
REGSTORE s0, FORK_S0_OFFSET(sp)
118
#endif
119
120
- addi s0, sp, FORK_SIZEOF
121
- REGSTORE s0, FORK_SP_OFFSET(sp) /* original SP */
+ addi a0, sp, FORK_SIZEOF
+ REGSTORE a0, FORK_SP_OFFSET(sp) /* original SP */
122
REGSTORE x1, FORK_RA_OFFSET(sp) /* return address */
123
124
/* Floating point registers */
0 commit comments