diff options
author | Drew Barbier <dbarbi1@gmail.com> | 2017-07-26 15:49:18 -0500 |
---|---|---|
committer | Drew Barbier <dbarbi1@gmail.com> | 2017-07-26 15:49:18 -0500 |
commit | 7ce4b61da3e41c441c3634352782abc9819adf39 (patch) | |
tree | b437b0e5161d3ecab5a99ed54fc7bf72c80184f7 /software/vectored_interrupts | |
parent | 4633b6fcda49604159322bbee941957b2bf67502 (diff) |
changed synch trap entry to match other vectors
Diffstat (limited to 'software/vectored_interrupts')
-rw-r--r-- | software/vectored_interrupts/vectored_interrupts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/software/vectored_interrupts/vectored_interrupts.c b/software/vectored_interrupts/vectored_interrupts.c index 8958105..06b9620 100644 --- a/software/vectored_interrupts/vectored_interrupts.c +++ b/software/vectored_interrupts/vectored_interrupts.c @@ -76,9 +76,9 @@ void handle_m_time_interrupt(){ /*Synchronous Trap Handler*/ /*called from bsp/env/ventry.s */ -void handle_sync_trap(uintptr_t mcause, uintptr_t epc ) { +void handle_sync_trap( ) { write(1, "vUnhandled Trap:\n", 16); - _exit(1 + mcause); + _exit(1 + read_csr(mcause)); } /*Entry Point for PLIC Interrupt Handler*/ |