summaryrefslogtreecommitdiff
path: root/code/fe310/eos/trap_entry.S
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-10-18 18:54:04 +0200
committerUros Majstorovic <majstor@majstor.org>2019-10-18 18:54:04 +0200
commit15385be32753cd928c708e9478eda546c3eb1644 (patch)
tree6a193ce6cf425ae16c752a57c21689307d989738 /code/fe310/eos/trap_entry.S
parent85500fe0d01b691a9bdd8c2330d26d66bc2bc177 (diff)
fixed interrupt priority defs
Diffstat (limited to 'code/fe310/eos/trap_entry.S')
-rw-r--r--code/fe310/eos/trap_entry.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/code/fe310/eos/trap_entry.S b/code/fe310/eos/trap_entry.S
index 91a44dc..efa61ec 100644
--- a/code/fe310/eos/trap_entry.S
+++ b/code/fe310/eos/trap_entry.S
@@ -43,6 +43,7 @@
#include "net_def.h"
#include "spi_def.h"
+#include "irq_def.h"
.section .data.entry
@@ -359,7 +360,7 @@ i2s_handler_sd_exit:
i2s_handler_ws:
# enable sd irq
li x18, PLIC_PRIORITY
- li x19, I2S_IRQ_SD_PRIORITY
+ li x19, IRQ_PRIORITY_I2S_SD
sw x19, 4*I2S_IRQ_SD_ID(x18)
# complete