summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/entry-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/entry-common.h')
-rw-r--r--arch/riscv/include/asm/entry-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/entry-common.h b/arch/riscv/include/asm/entry-common.h
index 19023c430a9b..2293e535f865 100644
--- a/arch/riscv/include/asm/entry-common.h
+++ b/arch/riscv/include/asm/entry-common.h
@@ -16,7 +16,7 @@ static inline void arch_exit_to_user_mode_prepare(struct pt_regs *regs,
* We are already called with irq disabled, so go without
* keeping track of riscv_v_flags.
*/
- riscv_v_vstate_restore(current, regs);
+ riscv_v_vstate_restore(&current->thread.vstate, regs);
}
}