-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aia): external interrupt priority from CLINT or IMSIC
* The current external interrupts come from two sources, CLINT and IMSIC. The external interrupt priority number of CLINT is 0, and the external interrupt priority number of IMSIC is 1~2047. We use the global variable external_interrupt_select to determine the source of the external interrupt. If the external interrupt comes from CLINT, external_interrupt_select = false; if the external interrupt comes from IMSIC, external_interrupt_select = true. * The case where the priority number is greater than 255 is added to the interrupt priority comparison method. * The priority number of each interrupt in the iprios array occupies 8 bits, and its read data is masked by the corresponding bit of the xie register, so when writing the xie register, the read data of the iprios array needs to be updated.
- Loading branch information
1 parent
ca3a869
commit 3869753
Showing
7 changed files
with
166 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.