riscv/fork: fix fp/s0 field position
The fp/s0 field position shall be in line with the macro FORK_FP_OFFSET/FORK_S0_OFFSET. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
parent
5df3f5d4f7
commit
3f021d5429
@ -119,6 +119,11 @@ struct fork_s
|
||||
{
|
||||
/* CPU registers */
|
||||
|
||||
#ifdef CONFIG_RISCV_FRAMEPOINTER
|
||||
uintreg_t fp; /* Frame pointer */
|
||||
#else
|
||||
uintreg_t s0; /* Saved register s0 */
|
||||
#endif
|
||||
uintreg_t s1; /* Saved register s1 */
|
||||
uintreg_t s2; /* Saved register s2 */
|
||||
uintreg_t s3; /* Saved register s3 */
|
||||
@ -130,11 +135,6 @@ struct fork_s
|
||||
uintreg_t s9; /* Saved register s9 */
|
||||
uintreg_t s10; /* Saved register s10 */
|
||||
uintreg_t s11; /* Saved register s11 */
|
||||
#ifdef CONFIG_RISCV_FRAMEPOINTER
|
||||
uintreg_t fp; /* Frame pointer */
|
||||
#else
|
||||
uintreg_t s0; /* Saved register s0 */
|
||||
#endif
|
||||
uintreg_t sp; /* Stack pointer */
|
||||
uintreg_t ra; /* Return address */
|
||||
#ifdef RISCV_SAVE_GP
|
||||
|
Loading…
Reference in New Issue
Block a user