summaryrefslogtreecommitdiff
path: root/bsp/freedom-e310-arty
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-01-07 19:06:03 +0000
committerGitHub <noreply@github.com>2019-01-07 19:06:03 +0000
commit7a965490cc35a8f9880f0a7d15a28a5dfb954bfd (patch)
treefd8ceb059aa13860b39ec536013373339d863fba /bsp/freedom-e310-arty
parent1a8f64bd33401e2f7b743558b3453ec30a092c9a (diff)
parent2139efac01f4bd8826eeec3cf5a60ffaf4d5c942 (diff)
Merge pull request #127 from sifive/itim
Add an ITIM example
Diffstat (limited to 'bsp/freedom-e310-arty')
-rw-r--r--bsp/freedom-e310-arty/mee.lds27
1 files changed, 27 insertions, 0 deletions
diff --git a/bsp/freedom-e310-arty/mee.lds b/bsp/freedom-e310-arty/mee.lds
index cf24a7c..8cd1a87 100644
--- a/bsp/freedom-e310-arty/mee.lds
+++ b/bsp/freedom-e310-arty/mee.lds
@@ -5,6 +5,7 @@ ENTRY(_enter)
MEMORY
{
ram (wxa!ri) : ORIGIN = 0x80000000, LENGTH = 0x4000
+ itim (wx!rai) : ORIGIN = 0x8000000, LENGTH = 0x4000
flash (rxai!w) : ORIGIN = 0x20400000, LENGTH = 0x20000000
}
@@ -12,7 +13,9 @@ PHDRS
{
flash PT_LOAD;
ram_init PT_LOAD;
+ itim_init PT_LOAD;
ram PT_NULL;
+ itim PT_NULL;
}
SECTIONS
@@ -117,6 +120,30 @@ SECTIONS
} >flash AT>flash :flash
+ .litimalign :
+ {
+ . = ALIGN(4);
+ PROVIDE( mee_segment_itim_source_start = . );
+ } >flash AT>flash :flash
+
+
+ .ditimalign :
+ {
+ . = ALIGN(4);
+ PROVIDE( mee_segment_itim_target_start = . );
+ } >itim AT>flash :itim_init
+
+
+ .itim :
+ {
+ *(.itim .itim.*)
+ } >itim AT>flash :itim_init
+
+
+ . = ALIGN(8);
+ PROVIDE( mee_segment_itim_target_end = . );
+
+
.lalign :
{
. = ALIGN(4);