Visible to Intel only — GUID: pjy1741139121157
Ixiasoft
Visible to Intel only — GUID: pjy1741139121157
Ixiasoft
4.3.11.1.3.4. Machine Interrupt-Level Threshold Register (mintthresh)
The interrupt-level threshold (mintthresh) is a new read-write CSR, which holds an 8-bit field (threshold) for the threshold level of the associated privilege mode. The threshold field is held in the least-significant 8 bits of the CSR, and zero should be written to the upper bits.
A typical usage of the interrupt-level threshold is for implementing critical sections. The current handler can temporarily raise its effective interrupt level to implement a critical section among a subset of levels, while still allowing higher interrupt levels to pre-empt.
31 | 8 | 7 | 0 |
Reserved (Hardwired as 0) | threshold (WARL) |
The current hart’s effective interrupt level is effective_level = max(mintstatus.mil, mintthresh.th)