zephyr/include/arch/arm/cortex_m
David Brown fe7aa3f4fa misc: Allow flash image size to be constrained
The CONFIG_FLASH_LOAD_OFFSET allows the zephyr image to be placed at
an offset from the start of flash.  This is useful for situations,
such as with a bootloader, to allow the image to not occupy the very
beginning of flash.

Complement this by adding a CONFIG_FLASH_LOAD_SIZE config, that can
constrain the size of the flash image.  With the default of zero, the
behavior is as before, with the image allowed to occupy the rest of
the flash.  It can also be defined to a non-zero value which will
constrain the image to occupy that many bytes of flash.

Although this is defined generally, it is currently only supported on
cortex-m targets.

Change-Id: I6e4a0e79c8459f931cd4757c932d20dac740f5f6
Signed-off-by: David Brown <david.brown@linaro.org>
2017-04-14 01:35:59 +00:00
..
scripts misc: Allow flash image size to be constrained 2017-04-14 01:35:59 +00: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