METHOD FOR PROCESSING INTERRUPT AND INTERRUPT PROCESSING DEVICE
The present disclosure provides methods and apparatuses for interrupt processing. An interrupt processing method includes executing a first interrupt by using a common register, receiving a second interrupt and a second priority of the second interrupt during execution of the first interrupt, compar...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The present disclosure provides methods and apparatuses for interrupt processing. An interrupt processing method includes executing a first interrupt by using a common register, receiving a second interrupt and a second priority of the second interrupt during execution of the first interrupt, comparing a first priority of the first interrupt with the second priority of the second interrupt, generating a first register index corresponding to the second priority of the second interrupt by using a look-up table based on the second priority of the second interrupt being greater than the first priority, and, based on the first register index being a dedicated index, maintaining a context of the first interrupt stored in the common register, assigning a dedicated register for execution of the second interrupt, and executing an interrupt program corresponding to the second interrupt by using the assigned dedicated register. The interrupt program is saved in a memory. |
---|