Skip to content

Commit

Permalink
Fix MODE field description of mtvec register
Browse files Browse the repository at this point in the history
Fix MODE field description in the mtvec register

In Section 1.6, "Exceptions, Traps, and Interrupts" of the unprivileged
specification, a distinction is made between exceptions and interrupts.

Table 13 in the privileged specification uses the term "exceptions" as a
catch-all expression, encompassing both "exceptions and interrupts"
which may not be immediately apparent.

Reading "exceptions" merely as "exceptions" initially led me to believe
that the 0th bit is used to control exception handling behavior, while
the 1st bit is used to control interrupt handling behavior.



Signed-off-by: Andrei Solodovnikov <VoultBoy@yandex.ru>
  • Loading branch information
HepoH3 authored Nov 22, 2023
1 parent b36aecf commit 25e8dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/machine.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ hand, we wish to allow flexibility for larger systems.
|Direct +
Vectored +
---
|All exceptions set `pc` to BASE. +
|All traps set `pc` to BASE. +
Asynchronous interrupts set `pc` to BASE+4&#215;cause. +
_Reserved_
|===
Expand Down

0 comments on commit 25e8dbc

Please sign in to comment.