Skip to content

Commit

Permalink
Add workaround for the pcrel issue
Browse files Browse the repository at this point in the history
As described here by @medusacle:
rust-embedded/riscv-rt#25 (comment)
  • Loading branch information
Disasm committed May 12, 2019
1 parent 85db791 commit c24d654
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions memory-k210.x
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
MEMORY
{
SRAM : ORIGIN = 0x80000000, LENGTH = 6M
AI_SRAM : ORIGIN = 0x80600000, LENGTH = 2M
/* Workaround for the pcrel issue, as described here:
https://github.com/rust-embedded/riscv-rt/issues/25#issuecomment-491518168 */
SRAM : ORIGIN = 0xffffffff80000000, LENGTH = 6M
AI_SRAM : ORIGIN = 0xffffffff80600000, LENGTH = 2M
SRAM_NOCACHE : ORIGIN = 0x40000000, LENGTH = 6M
AI_SRAM_NOCACHE : ORIGIN = 0x40600000, LENGTH = 2M
}

0 comments on commit c24d654

Please sign in to comment.