We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed78646 commit bc8a4e4Copy full SHA for bc8a4e4
arch/risc-v/src/nuttsbi/sbi_mexception.c
@@ -30,8 +30,9 @@
30
* Public Functions
31
****************************************************************************/
32
33
-void sbi_mexception(uintptr_t mcause, uintptr_t *mepc)
+void sbi_mexception(uintreg_t mcause, uintreg_t *mepc, uintreg_t tval)
34
{
35
- (void) mcause;
36
- (void) mepc;
+ UNUSED(mcause);
+ UNUSED(mepc);
37
+ UNUSED(tval);
38
}
arch/risc-v/src/nuttsbi/sbi_mtrap.S
@@ -127,6 +127,7 @@ machine_trap:
127
128
csrr a0, CSR_MCAUSE /* Interrupt cause [arg0] */
129
csrr a1, CSR_MEPC /* Interrupt PC (instruction) [arg1] */
130
+ csrr a2, CSR_MTVAL /* The MTVAL value [arg2] */
131
jal x1, sbi_mexception
132
j __start
133
0 commit comments