Skip to content

Commit

Permalink
Add POINTER_MASKING_PMLEN to the SBI FWFT extension
Browse files Browse the repository at this point in the history
Allow supervisor software to request that pointer masking be enabled for
S-mode. Supervisor software provides a lower bound on PMLEN, which
abstracts away which specific pointer masking modes are supported.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
  • Loading branch information
SiFiveHolland committed Aug 14, 2024
1 parent 14d490c commit a07393d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ext-firmware-features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ the features which supervisor-mode software may request to set or get.
supervisor-mode.
| 0x00000004 | PTE_AD_HW_UPDATING | Control hardware updating of PTE A/D
bits for supervisor-mode.
| 0x00000005 -
| 0x00000005 | POINTER_MASKING_PMLEN | Control the pointer masking tag
length for supervisor-mode.
| 0x00000006 -
0x3fffffff | | Local feature types reserved for
future use.
| 0x40000000 -
Expand Down Expand Up @@ -92,6 +94,13 @@ description. Upon system reset, global and local feature values are reset.
! 0 ! Disable hardware updating of PTE A/D bits for supervisor-mode.
! 1 ! Enable hardware updating of PTE A/D bits for supervisor-mode.
!===
| POINTER_MASKING_PMLEN | 0 | Local |
[cols="1,4"]
!===
! 0 ! Disable pointer masking for supervisor-mode.
! N ! Enable pointer masking for supervisor-mode with PMLEN >= N.
A call to `sbi_fwft_get()` returns the actual value of PMLEN.
!===
|===

=== Function: Firmware Features Set (FID #0)
Expand Down

0 comments on commit a07393d

Please sign in to comment.