mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
kernel: riscv: invert shared logic
This logic was backwards. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
e9a1da25b0
commit
b6a28a85fc
1 changed files with 1 additions and 1 deletions
|
|
@ -584,7 +584,7 @@ pub fn virt_to_phys(virt: usize) -> Result<usize, xous_kernel::Error> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the page is "Valid" but shared, issue a sharing violation
|
// If the page is "Valid" but shared, issue a sharing violation
|
||||||
if l0_pt.entries[vpn0] & MMUFlags::S.bits() == 0 {
|
if l0_pt.entries[vpn0] & MMUFlags::S.bits() == 1 {
|
||||||
return Err(xous_kernel::Error::ShareViolation);
|
return Err(xous_kernel::Error::ShareViolation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue