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>
This commit is contained in:
parent
6e2a07e32a
commit
d8910405cb
|
@ -33,6 +33,13 @@ static inline void arm_cpu_lowlevel_init(void)
|
||||||
set_cr(r);
|
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
|
#ifdef CONFIG_HAVE_MACH_ARM_HEAD
|
||||||
#include <mach/barebox-arm-head.h>
|
#include <mach/barebox-arm-head.h>
|
||||||
#else
|
#else
|
||||||
|
@ -64,6 +71,9 @@ static inline void barebox_arm_head(void)
|
||||||
* barebox can skip relocation
|
* barebox can skip relocation
|
||||||
*/
|
*/
|
||||||
".word _barebox_image_size\n" /* image size to copy */
|
".word _barebox_image_size\n" /* image size to copy */
|
||||||
|
".rept 8\n"
|
||||||
|
".word 0x55555555\n"
|
||||||
|
".endr\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue