From ade4905ef785005347718ce612c245f7fa4dad70 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 25 Dec 2019 04:02:34 +0100 Subject: eve touch driver added; text box updated; --- code/fe310/eos/interrupt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'code/fe310/eos/interrupt.c') 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 #include #include +#include #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; -- cgit v1.2.3