Skip to content

Commit

Permalink
level-ext: fix permission encoding table
Browse files Browse the repository at this point in the history
All possible entries in quadrant 1 grant execute permission.
Tick the X column in table 28 for all quadrant 1 entries.
This is consistent with the Notes and with table 4.

Signed-off-by: Martin Kaiser <[email protected]>
  • Loading branch information
martin-kaiser committed Oct 16, 2024
1 parent cf7e656 commit 8231470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/level-ext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ endif::[]
11+| bit[0] - <<m_bit>> ({CAP_MODE_VALUE}-{cheri_cap_mode_name}, {INT_MODE_VALUE}-{cheri_int_mode_name})
|Bits[4:3]| R | W | C | LM | EL | SL | X | ASR | Mode^1^ |
| 0-1 | ✔ | ✔ | ✔ | ✔ | ✔ | ∞ | ✔ | ✔ | Mode^1^ | Execute + ASR (see <<infinite-cap>>)
| 2-3 | ✔ | | ✔ | ✔ | ✔ | ∞ | | | Mode^1^ | Execute + Data & Cap RO
| 2-3 | ✔ | | ✔ | ✔ | ✔ | ∞ | | | Mode^1^ | Execute + Data & Cap RO
| 4-5 | ✔ | ✔ | ✔ | ✔ | ✔ | ∞ | ✔ | | Mode^1^ | Execute + Data & Cap RW
| 6-7 | ✔ | ✔ | | | | N/A | | | Mode^1^ | Execute + Data RW
| 6-7 | ✔ | ✔ | | | | N/A | | | Mode^1^ | Execute + Data RW
11+| *Quadrant 2: Restricted capability data read/write*
11+| bit[2] = write, bit[1:0] = store level. R and C implicitly granted, LM dependent on W permission.
|Bits[4:3]| R | W | C | LM | EL | SL | X | ASR | Mode^1^ |
Expand Down

0 comments on commit 8231470

Please sign in to comment.