1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00

cortexm_common/ldscript: add _fw_rom_length variable

It will help testing if it is taken into account and for defining for outside
after.
This commit is contained in:
Gaëtan Harter 2018-07-16 14:13:04 +02:00 committed by cladmi
parent bbb1fbe0e3
commit 83a617261a
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -21,10 +21,11 @@
*/
_rom_offset = DEFINED( _rom_offset ) ? _rom_offset : 0x0;
_fw_rom_length = _rom_length - _rom_offset;
MEMORY
{
rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _rom_length - _rom_offset
rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length
ram (w!rx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length
}