Exception handler and method for handling interrupts
Abstract
An exception handler has a priority table which stores information pertaining to priorities for handling one or more concurrently generated interrupts. This table holds all possible priorities of interrupts given the numerous permutations that can arise for any set of active and non-active interrupts. The exception handler also includes a cause register that has flag bits to indicate when an interrupt has been generated. The bits in the cause register define an indexing address to a location in the priority table that contains the priority information for a given combination of active and non-active interrupts. In one implementation, the priority table stores the addresses of interrupt service routines (ISRs) for handling the highest priority active interrupt from among all currently active interrupts. In another implementation, the priority table holds index addresses to a second, ISR address table which associates the interrupts with the addresses of the corresponding ISRs that service them. The priority table effectively selects the highest priority interrupt by addressing the appropriate location in the ISR address table to extract the address of the suitable ISR. The tradeoff
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 61.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
An exception handler for handling interrupts, the exception handler comprising: a cause register to hold bits indicative of interrupt activity, individual cause register bits having a first binary value when an interrupt is active and a second binary value when an interrupt is non-active; a priority table to store information pertaining to priorities for handling one or more active interrupts; and the cause register and priority table being correlated in a manner that the bits in the cause register form an indexing address to a location in the priority table that contains the priority info
- Claim 2Depends on #1
An exception handler as recited in claim 1 wherein the priority table stores addresses to interrupt service routines.
- Claim 3Depends on #1
An exception handler as recited in claim 1 wherein the priority t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗