summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/soc/interrupt.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2025-07-28 23:27:12 +0200
committerUros Majstorovic <majstor@majstor.org>2025-07-28 23:27:12 +0200
commit58f41971b1e801ad2fbcea08e5152afa2b18ca73 (patch)
tree51793b55b350f7807d5d1b7e1401b50f402ccc48 /fw/fe310/eos/soc/interrupt.c
parentdab5a1fbd188f8f9436df1b3dff6e344c444fc23 (diff)
sys logging added; power management reimplemented; bugfixes;
Diffstat (limited to 'fw/fe310/eos/soc/interrupt.c')
-rw-r--r--fw/fe310/eos/soc/interrupt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fw/fe310/eos/soc/interrupt.c b/fw/fe310/eos/soc/interrupt.c
index dab6fab..2243f0a 100644
--- a/fw/fe310/eos/soc/interrupt.c
+++ b/fw/fe310/eos/soc/interrupt.c
@@ -1,13 +1,13 @@
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
-#include <stdio.h>
#include "encoding.h"
#include "platform.h"
#include "plic_driver.h"
#include "eos.h"
+#include "log.h"
#include "interrupt.h"
// Global Instance data for the PLIC
@@ -20,13 +20,13 @@ 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 {
- printf("INTR ERROR:%d\n", int_num);
+ EOS_LOG(EOS_LOG_ERR, "INTR ERROR:%d\n", int_num);
exit(int_num);
}
return int_num;
}
-int eos_intr_init(uint8_t wakeup_cause) {
+int eos_intr_init(void) {
for (int i = 0; i < PLIC_NUM_INTERRUPTS; i++){
ext_interrupt_handler[i] = NULL;
}