1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/riscv_common
Sören Tempel e41063d40e cpu/riscv_common: fix undeclared memory region linker error
Since commit 3a11b1fbd2 (#16972)
building RIOT applications with `BOARD=hifive1` causes the following
linker error to be emitted on my system:

	/opt/rv32imc/lib/gcc/riscv32-unknown-elf/10.2.0/../../../../riscv32-unknown-elf/bin/ld:riscv_base.ld:220: warning: memory region `rom' not declared

This is due to the fact that the RISC-V linker script doesn't have a rom
memory region. While many other ARM-based boards have a rom memory
region defined in the linker script, the corresponding region name in
the RISC-V linker script is flash and rom is not declared as a memory
region hence the warning.

I think this was accidentally overlooked in
3a11b1fbd2. It is fixed in this commit by
replacing the rom region with the flash region. The linker script
identifiers (e.g. _srom and _erom) are not renamed.
2022-01-27 15:02:50 +01:00
..
include core: change return type of irq_is_in(), irq_is_enabled() to bool 2021-12-08 15:53:15 +01:00
ldscripts cpu/riscv_common: fix undeclared memory region linker error 2022-01-27 15:02:50 +01:00
periph cpu/riscv_common: uncrustify 2021-11-19 00:20:12 +01:00
context_frame.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
irq_arch.c cpu/riscv_common: uncrustify 2021-11-19 00:20:12 +01:00
Kconfig cpu/riscv_common: Enable Rust applications 2022-01-14 13:42:32 +01:00
Makefile riscv_common: Refactor common fe310 code to riscv_common 2021-02-05 09:32:19 +01:00
Makefile.dep cpu/riscv_common: move C lib selection to common place 2021-08-25 10:53:00 +02:00
Makefile.features cpu/riscv_common: Enable Rust applications 2022-01-14 13:42:32 +01:00
Makefile.include cpu/riscv_common: Jump to rom start on boot 2021-08-24 10:30:12 +02:00
panic.c riscv_common: Refactor common fe310 code to riscv_common 2021-02-05 09:32:19 +01:00
riscv_init.c riscv_common: Refactor common fe310 code to riscv_common 2021-02-05 09:32:19 +01:00
start.S cpu/riscv_common: call cpu_init() 2021-10-13 23:21:56 +02:00
thread_arch.c cpu/riscv_common: Suppress cppcheck error 2021-11-25 13:08:51 +01:00