Skip to content
Commit f3c39c70 authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Anas Nashif
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>
(cherry picked from commit e30db2d5)
parent 69e62ed8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment