Nios® V Processor Reference Manual

ID 683632
Date 5/25/2025
Public

Visible to Intel only — GUID: pjy1741139121157

Ixiasoft

Document Table of Contents

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.

Table 130.   mintthresh Register Layout
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)