mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
clarify comments on coreuser protection
This commit is contained in:
parent
72a7ea3a56
commit
bce08a1d27
1 changed files with 3 additions and 1 deletions
|
|
@ -151,7 +151,9 @@ impl Coreuser {
|
|||
|
||||
/// Sets a "one way door" that disallows any further updating to these fields.
|
||||
pub fn protect(&mut self) {
|
||||
// map default ASID into the least trusted user (away from boot0)
|
||||
// map default ASID of 0 into the least trusted user (away from boot0)
|
||||
// this is necessary to ensure that the boot0 partition is write-protected
|
||||
// from this point going forward.
|
||||
self.csr.rmwf(utra::coreuser::MAP_HI_LUT7, 0);
|
||||
self.csr.rmwf(utra::coreuser::USERVALUE_USER7, LEAST_TRUSTED_USER.as_dense());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue