summaryrefslogtreecommitdiff
path: root/bsp/coreip-s51-rtl
diff options
context:
space:
mode:
authorBunnaroath Sou <bsou@sifive.com>2019-03-21 18:04:29 -0700
committerBunnaroath Sou <bsou@sifive.com>2019-03-21 18:04:29 -0700
commit66901a72d41fb1f350e1d972b5b920c6d61b33a1 (patch)
treedf8bd771d4d765ceedfa9875cd822e4eea4a4db9 /bsp/coreip-s51-rtl
parent318ac16f2b0fdab7ac82758993e7e6835b94115d (diff)
Update lds files to exclude itim in .text and PLIC subinterrupts
Diffstat (limited to 'bsp/coreip-s51-rtl')
-rw-r--r--bsp/coreip-s51-rtl/metal.default.lds1
-rw-r--r--bsp/coreip-s51-rtl/metal.h9
-rw-r--r--bsp/coreip-s51-rtl/metal.ramrodata.lds1
-rw-r--r--bsp/coreip-s51-rtl/metal.scratchpad.lds1
4 files changed, 8 insertions, 4 deletions
diff --git a/bsp/coreip-s51-rtl/metal.default.lds b/bsp/coreip-s51-rtl/metal.default.lds
index efa595f..a997b8b 100644
--- a/bsp/coreip-s51-rtl/metal.default.lds
+++ b/bsp/coreip-s51-rtl/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/coreip-s51-rtl/metal.h b/bsp/coreip-s51-rtl/metal.h
index 6618a7c..6905a9d 100644
--- a/bsp/coreip-s51-rtl/metal.h
+++ b/bsp/coreip-s51-rtl/metal.h
@@ -5,6 +5,11 @@
#ifdef __METAL_MACHINE_MACROS
+#define __METAL_PLIC_SUBINTERRUPTS 128
+
+#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 128
+
#define METAL_MAX_PLIC_INTERRUPTS 1
#define METAL_MAX_CLIC_INTERRUPTS 0
@@ -115,7 +122,7 @@ struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000 = {
.control_base = 201326592UL,
.control_size = 67108864UL,
.max_priority = 7UL,
- .num_interrupts = 127UL,
+ .num_interrupts = 128UL,
.interrupt_controller = 1,
};
diff --git a/bsp/coreip-s51-rtl/metal.ramrodata.lds b/bsp/coreip-s51-rtl/metal.ramrodata.lds
index de23402..23aef82 100644
--- a/bsp/coreip-s51-rtl/metal.ramrodata.lds
+++ b/bsp/coreip-s51-rtl/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/coreip-s51-rtl/metal.scratchpad.lds b/bsp/coreip-s51-rtl/metal.scratchpad.lds
index 8ead4a8..c789249 100644
--- a/bsp/coreip-s51-rtl/metal.scratchpad.lds
+++ b/bsp/coreip-s51-rtl/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