summaryrefslogtreecommitdiff
path: root/bsp/freedom-e310-arty
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/freedom-e310-arty')
-rw-r--r--bsp/freedom-e310-arty/metal.default.lds1
-rw-r--r--bsp/freedom-e310-arty/metal.h9
-rw-r--r--bsp/freedom-e310-arty/metal.ramrodata.lds1
-rw-r--r--bsp/freedom-e310-arty/metal.scratchpad.lds1
4 files changed, 8 insertions, 4 deletions
diff --git a/bsp/freedom-e310-arty/metal.default.lds b/bsp/freedom-e310-arty/metal.default.lds
index 04d9218..815b31b 100644
--- a/bsp/freedom-e310-arty/metal.default.lds
+++ b/bsp/freedom-e310-arty/metal.default.lds
@@ -37,7 +37,6 @@ SECTIONS
*(.text.unlikely .text.unlikely.*)
*(.text.startup .text.startup.*)
*(.text .text.*)
- *(.itim .itim.*)
*(.gnu.linkonce.t.*)
} >flash AT>flash :flash
diff --git a/bsp/freedom-e310-arty/metal.h b/bsp/freedom-e310-arty/metal.h
index f2086b5..ddc92a4 100644
--- a/bsp/freedom-e310-arty/metal.h
+++ b/bsp/freedom-e310-arty/metal.h
@@ -5,6 +5,11 @@
#ifdef __METAL_MACHINE_MACROS
+#define __METAL_PLIC_SUBINTERRUPTS 27
+
+#ifndef __METAL_PLIC_SUBINTERRUPTS
+#define __METAL_PLIC_SUBINTERRUPTS 0
+#endif
#ifndef __METAL_CLIC_SUBINTERRUPTS
#define __METAL_CLIC_SUBINTERRUPTS 0
#endif
@@ -17,6 +22,8 @@
#define __METAL_INTERRUPT_CONTROLLER_C000000_INTERRUPTS 1
+#define __METAL_PLIC_SUBINTERRUPTS 27
+
#define METAL_MAX_PLIC_INTERRUPTS 1
#define METAL_MAX_CLIC_INTERRUPTS 0
@@ -130,7 +137,7 @@ struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000 = {
.control_base = 201326592UL,
.control_size = 67108864UL,
.max_priority = 7UL,
- .num_interrupts = 26UL,
+ .num_interrupts = 27UL,
.interrupt_controller = 1,
};
diff --git a/bsp/freedom-e310-arty/metal.ramrodata.lds b/bsp/freedom-e310-arty/metal.ramrodata.lds
index 2898a03..9d535aa 100644
--- a/bsp/freedom-e310-arty/metal.ramrodata.lds
+++ b/bsp/freedom-e310-arty/metal.ramrodata.lds
@@ -137,7 +137,6 @@ SECTIONS
*(.text.startup .text.startup.*)
*(.text .text.*)
*(.gnu.linkonce.t.*)
- *(.itim .itim.*)
} >flash AT>flash :flash
diff --git a/bsp/freedom-e310-arty/metal.scratchpad.lds b/bsp/freedom-e310-arty/metal.scratchpad.lds
index 98161de..89a39b9 100644
--- a/bsp/freedom-e310-arty/metal.scratchpad.lds
+++ b/bsp/freedom-e310-arty/metal.scratchpad.lds
@@ -37,7 +37,6 @@ SECTIONS
*(.text.unlikely .text.unlikely.*)
*(.text.startup .text.startup.*)
*(.text .text.*)
- *(.itim .itim.*)
*(.gnu.linkonce.t.*)
} >ram AT>ram :ram