Configure PMP at boot
This commit is contained in:
parent
6de0381d61
commit
9655f71758
2 changed files with 17 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ start()
|
|||
w_mideleg(0xffff);
|
||||
w_sie(r_sie() | SIE_SEIE | SIE_STIE | SIE_SSIE);
|
||||
|
||||
// configure Physical Memory Protection to give supervisor mode
|
||||
// access to all of physical memory.
|
||||
w_pmpaddr0(0x3fffffffffffffull);
|
||||
w_pmpcfg0(0xf);
|
||||
|
||||
// ask for clock interrupts.
|
||||
timerinit();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue