Skip to content

Commit

Permalink
clarify reference to risc-v profiles
Browse files Browse the repository at this point in the history
for issue #219   
Add text that specifies that these different interrupt ID recommendations are enumerated for reference in risc-v profile (ISA features) specifications.
Change PLIC to PLIC/APLIC since recent risc-v platforms (specifications for a hardware system) refer to APLIC.

Signed-off-by: Dan Smathers <[email protected]>
  • Loading branch information
dansmathers authored Aug 31, 2022
1 parent 424f444 commit c6609be
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions clic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2560,8 +2560,10 @@ on {scratchcswl} is not defined/reserved.

== CLIC Interrupt ID ordering recommendations

There are a few CLIC interrupt ID ordering recommendations
as part of a profile and are not mandatory in all incarnations of the CLIC.
As stated in the RISC-V profiles specification, RISC-V profiles specify a common
set of ISA choices that capture the most value for most users to enable software
compatibility. CLIC compatibility with RISC-V specified profiles is not mandatory.
Four different CLIC interrupt ID orderings are enumerated below for ease of reference in profile specifications.

=== CLINT mode compatibility recommendation:
The CLINT mode interrupts retain their interrupt ID in CLIC mode.
Expand Down Expand Up @@ -2591,10 +2593,10 @@ ID Interrupt Note
6 reserved
7 mtip Machine timer interrupt
8 ueip User external (PLIC) interrupt
9 seip Supervisor external (PLIC) interrupt
8 ueip User external (PLIC/APLIC) interrupt
9 seip Supervisor external (PLIC/APLIC) interrupt
10 reserved
11 meip Machine external (PLIC) interrupt
11 meip Machine external (PLIC/APLIC) interrupt
12 reserved
13 reserved
Expand Down Expand Up @@ -2626,16 +2628,16 @@ ID Interrupt
4+ external (including legacy)
----

=== Interrupt map with PLIC recommendation:
=== Interrupt map with PLIC/APLIC recommendation:
[source]
----
ID Interrupt
0 S-mode software interrupt
1 S-mode timer interrupt
2 S-mode external (PLIC) interrupt
2 S-mode external (PLIC/APLIC) interrupt
3 M-mode software interrupt
4 M-mode timer interrupt
5 M-mode external (PLIC) interrupt
5 M-mode external (PLIC/APLIC) interrupt
6+ external
----

Expand Down

0 comments on commit c6609be

Please sign in to comment.