summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-01 10:53:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-01 13:58:01 +0200
commit75c96bd2459ea013bf6bf4eea7f53094a4d66e93 (patch)
tree497e65e4fb66bce768bacdff1a15499b3c66a195 /arch/arm/include/asm
parentc44d92683f24d234a51c2cea62d199e7ab43d08a (diff)
downloadbarebox-75c96bd2459ea013bf6bf4eea7f53094a4d66e93.tar.gz
barebox-75c96bd2459ea013bf6bf4eea7f53094a4d66e93.tar.xz
ARM: Do not use last 64KiB of address space for barebox
The last 64KiB of address space may be used for the vector table at 0xffff0000, so we cannot use it for barebox. The easiest way to archieve this is to never use the last 64KiB of memory. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/barebox-arm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h
index 67133265d1..8e7b45c33d 100644
--- a/arch/arm/include/asm/barebox-arm.h
+++ b/arch/arm/include/asm/barebox-arm.h
@@ -97,7 +97,7 @@ void *barebox_arm_boot_dtb(void);
static inline unsigned long arm_mem_stack(unsigned long membase,
unsigned long endmem)
{
- return endmem - STACK_SIZE;
+ return endmem - SZ_64K - STACK_SIZE;
}
static inline unsigned long arm_mem_ttb(unsigned long membase,