Skip to content
Commit e30db2d5 authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Dan Kalowsky
Browse files

arch: riscv: reset global pointer on exception



Reset the gp on exception entry from u-mode to protect the kernel
against a possible rogue user thread.

Signed-off-by: default avatarYong Cong Sin <yongcong.sin@gmail.com>
Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
parent de3a8456
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment