diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-11 16:08:38 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-12 11:04:33 +0100 |
commit | d8910405cb2b89b285f3bb092f4089ced6b77ae0 (patch) | |
tree | 73666e6e8026555332ff445d0df4b873921d9bfe /arch/arm/include | |
parent | 6e2a07e32a62f325758653bf3d583df98f497ecf (diff) | |
download | barebox-d8910405cb2b89b285f3bb092f4089ced6b77ae0.tar.gz barebox-d8910405cb2b89b285f3bb092f4089ced6b77ae0.tar.xz |
ARM: head: Add some space behind the image header
This adds 32bytes of space behind the image header (exception table
+ barebox magic) for board/SoC specific use. This can be used for
example to embed some extra information in a flashed image.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/barebox-arm-head.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/include/asm/barebox-arm-head.h b/arch/arm/include/asm/barebox-arm-head.h index 9d9b8549ea..9385415233 100644 --- a/arch/arm/include/asm/barebox-arm-head.h +++ b/arch/arm/include/asm/barebox-arm-head.h @@ -33,6 +33,13 @@ static inline void arm_cpu_lowlevel_init(void) set_cr(r); } +/* + * 32 bytes at this offset is reserved in the barebox head for board/SoC + * usage + */ +#define ARM_HEAD_SPARE_OFS 0x30 +#define ARM_HEAD_SPARE_MARKER 0x55555555 + #ifdef CONFIG_HAVE_MACH_ARM_HEAD #include <mach/barebox-arm-head.h> #else @@ -64,6 +71,9 @@ static inline void barebox_arm_head(void) * barebox can skip relocation */ ".word _barebox_image_size\n" /* image size to copy */ + ".rept 8\n" + ".word 0x55555555\n" + ".endr\n" ); } #endif |