Skip to content

Commit 8912b84

Browse files
authored
Add a non-normative comment to clarify MXR behavior for pointer masking. (riscv#1667)
1 parent 69ac607 commit 8912b84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/zpm.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ It is worth noting that pointer masking is not applied to `SFENCE.\*`, `HFENCE.*
148148

149149
MPRV and SPVP affect pointer masking as well, causing the pointer masking settings of the effective privilege mode to be applied. When MXR is in effect at the effective privilege mode where explicit memory access is performed, pointer masking does not apply.
150150

151+
[NOTE]
152+
====
153+
Note that this includes cases where page-based virtual memory is not in effect; i.e., although MXR has no effect on permissions checks when page-based virtual memory is not in effect, it is still used in determining whether or not pointer masking should be applied.
154+
====
155+
151156
[NOTE]
152157
====
153158
Cache Management Operations (CMOs) must respect and take into account pointer masking. Otherwise, a few serious security problems can appear, including:

0 commit comments

Comments
 (0)