File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ rustflags = [
13
13
"-D", "warnings",
14
14
]
15
15
16
+ [target.riscv32imc-unknown-none-elf]
17
+ rustflags = [
18
+ "-C", "link-arg=-Topentitan_layout.ld",
19
+ "-C", "relocation-model=static",
20
+ "-D", "warnings",
21
+ ]
22
+
16
23
# Target configuration for the travis CI Linux build
17
24
[target.x86_64-unknown-linux-gnu]
18
25
rustflags = [
Original file line number Diff line number Diff line change
1
+ /* Layout for the RISC-V 32 boards, used by the examples in this repository. */
2
+
3
+ MEMORY {
4
+ /* The TBF header region is 32 bytes (0x20) */
5
+ FLASH (rx) : ORIGIN = 0x20030020, LENGTH = 32M
6
+ SRAM (rwx) : ORIGIN = 0x10000000, LENGTH = 512K
7
+ }
8
+
9
+ /*
10
+ * Any change to STACK_SIZE should be accompanied by a corresponding change to
11
+ * `elf2tab`'s `--stack` option
12
+ */
13
+ STACK_SIZE = 2048;
14
+
15
+ MPU_MIN_ALIGN = 1K;
16
+
17
+ INCLUDE layout.ld
You can’t perform that action at this time.
0 commit comments