summaryrefslogtreecommitdiff
path: root/code/fe310/eos/interrupt.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-12-25 04:02:34 +0100
committerUros Majstorovic <majstor@majstor.org>2019-12-25 04:02:34 +0100
commitade4905ef785005347718ce612c245f7fa4dad70 (patch)
treeab69e156c669821369ced918b6a698b15b394251 /code/fe310/eos/interrupt.c
parent08d725acb1638106bab46e29be8496b5d6db1cd3 (diff)
eve touch driver added; text box updated;
Diffstat (limited to 'code/fe310/eos/interrupt.c')
-rw-r--r--code/fe310/eos/interrupt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/code/fe310/eos/interrupt.c b/code/fe310/eos/interrupt.c
index cb513a0..b9b289b 100644
--- a/code/fe310/eos/interrupt.c
+++ b/code/fe310/eos/interrupt.c
@@ -1,6 +1,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
+#include <stdio.h>
#include "encoding.h"
#include "platform.h"
@@ -18,7 +19,7 @@ uintptr_t eos_intr_handle(uintptr_t int_num) {
if ((int_num >=1) && (int_num <= PLIC_NUM_INTERRUPTS) && (ext_interrupt_handler[int_num-1])) {
ext_interrupt_handler[int_num-1]();
} else {
- write(1, "error\n", 6);
+ printf("error:%d\n", int_num);
exit(int_num);
}
return int_num;