arch: riscv: pmp: Fix is_user_mode in RV64
Currently, is_user_mode is 8-byte in riscv64 and it breaks a 4-byte PMP region protecting it. Because is_user_mode is a single flag, we could just fix it's size to 4-byte in both riscv32 and riscv64. Signed-off-by: Jim Shu <cwshu09@gmail.com>
This commit is contained in:
parent
10e618ff33
commit
fd2c07682e
3 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
|||
* Glogal variable used to know the current mode running.
|
||||
* Is not boolean because it must match the PMP granularity of the arch.
|
||||
*/
|
||||
ulong_t is_user_mode;
|
||||
uint32_t is_user_mode;
|
||||
bool irq_flag;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue