mirror of
https://github.com/apache/nuttx.git
synced 2026-09-12 13:40:14 +00:00
arch/risc-v/src/common: fix wrong vregs access in up_initial_state
vregs is a member of struct xcptcontext, not tcb_s. Signed-off-by: luke kun <donghaokun@lixiang.com>
This commit is contained in:
parent
1ed0db7af4
commit
412931f707
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ void up_initial_state(struct tcb_s *tcb)
|
|||
{
|
||||
struct xcptcontext *xcp = &tcb->xcp;
|
||||
#if defined(CONFIG_ARCH_RV_ISA_V) && (CONFIG_ARCH_RV_VECTOR_BYTE_LENGTH == 0)
|
||||
uintptr_t *vregs = tcb->vregs;
|
||||
uintreg_t *vregs = xcp->vregs;
|
||||
#endif
|
||||
uintptr_t regval;
|
||||
uintptr_t topstack;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue