Skip to content
Commit 35ef71f7 authored by Jim Shu's avatar Jim Shu Committed by Carles Cufí
Browse files

arch: riscv: pmp: simplify thread initialization



Thread init related to PMP & userspace contains 5 parts:

1. User/supervisor thread clear PMP context
2. User thread clear it's context
3. User/supervisor thread assign to different entry
4. Supervisor thread assign mstatus.MPRV for M-mode PMP protection
5. User/supervisor thread setup PMP regions of stack guard if enabled

Signed-off-by: default avatarJim Shu <cwshu@andestech.com>
parent 9683c9e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment