Skip to content

Commit

Permalink
Only config pmp when EN_INT=y
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Sep 20, 2021
1 parent 2afec9e commit 5e096d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/kern/init.S
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ mtvec_done:
sfence.vma
#endif

#ifdef ENABLE_INT
// 设置 PMP Config
#ifdef RV32
// 0x00000000-0xffffffff RWX
Expand All @@ -355,6 +356,7 @@ mtvec_done:
csrw pmpcfg0, t0
li t0, 0xffffffffffffffff
csrw pmpaddr0, t0
#endif
#endif

j WELCOME // 进入主线程
Expand Down

0 comments on commit 5e096d6

Please sign in to comment.