zephyr/include/arch/arm/cortex_m
Marti Bolivar bf2d34ba30 arm: cortex-m: allow configurable ROM offset
Currently, ARM Cortex-M image ROMs are linked starting at the flash
device's base address (CONFIG_FLASH_BASE_ADDRESS). This prevents XIP
Zephyr applications from being linked to run from elsewhere on the
flash device. Linking Zephyr applications to run from elsewhere can be
necessary when running under a bootloader (i.e., booting into a Zephyr
application from a bootloader, not using Zephyr as a bootloader).

To enable this use case, add a new config option: FLASH_LOAD_OFFSET.
This option directs the linker to treat ROM as if it started that many
bytes from the base of flash on Cortex-M targets. The option defaults
to zero to preserve backwards compatibility.

Change-Id: I64f82aee257c19c2451f9789b0ab56999775b761
Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
2017-02-22 18:08:57 -06:00
..
scripts arm: cortex-m: allow configurable ROM offset 2017-02-22 18:08:57 -06:00
addr_types.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
asm_inline_gcc.h arm: move exception priority to exc.h 2017-01-30 11:02:36 -06:00
asm_inline.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cmsis.h arm: cmsis: cleanup use of _SCS_CPACR_CP1{0,1}_Pos define 2017-02-10 14:47:41 -06:00
error.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
exc.h arm: move exception priority to exc.h 2017-01-30 11:02:36 -06:00
irq.h arm: enable direct interrupts feature 2017-02-11 01:27:59 +00:00
memory_map.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
misc.h kernel: add flexibility to k_cycle_get_32() definition 2017-02-16 19:27:59 +00:00
nmi.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
sys_io.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00