arm/frdm_k64f: only leave space for security in XIP images
This board needs 16 bytes to be written with a specific value when the target boots. This is only necessary when running a XIP image which exists around those 16 bytes. Change-Id: Ifd26b3842f09137765d9c7d1678476bfda8a563f Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com> Signed-off-by: Vlad Lungu <vlad.lungu@windriver.com>
This commit is contained in:
parent
aaa94d8ba2
commit
d04e3fc134
1 changed files with 10 additions and 1 deletions
|
@ -21,12 +21,21 @@
|
|||
* This is the linker script for both standard images and XIP images.
|
||||
*/
|
||||
|
||||
#include <autoconf.h>
|
||||
|
||||
/*
|
||||
* K64F Flash configuration fields
|
||||
* These are 16 bytes, which must be loaded to address 0x400, and include
|
||||
* default protection and security settings.
|
||||
* They are loaded at reset to various Flash Memory module (FTFE) registers.
|
||||
*/
|
||||
#define SKIP_TO_SECURITY_FRDM_K64F . = 0x400;
|
||||
|
||||
/*
|
||||
* No need to account for this when running a RAM-only image since that
|
||||
* security feature resides in ROM.
|
||||
*/
|
||||
#if defined(CONFIG_XIP)
|
||||
#define SKIP_TO_SECURITY_FRDM_K64F . = 0x400;
|
||||
#endif
|
||||
|
||||
#include <arch/arm/cortex_m/scripts/linker.cmd>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue