Skip to content

Commit 03eca20

Browse files
author
Uwe Kleine-König
committed
ARM: nommu: don't limit TASK_SIZE
With TASK_SIZE set to the maximal RAM address booting in some XIP configurations fails (e.g. on efm32 DK3750). The problem is that strncpy_from_user et al. check for the address not being above TASK_SIZE (since 8c56cc8 (ARM: 7449/1: use generic strnlen_user and strncpy_from_user functions)) and this makes booting fail if the XIP flash is above the RAM address space. This change is in line with blackfin, frv and m68k which also use 0xffffffff for TASK_SIZE with !MMU. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
1 parent 4c83445 commit 03eca20

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎arch/arm/include/asm/memory.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@
9191
* of this define that was meant to.
9292
* Fortunately, there is no reference for this in noMMU mode, for now.
9393
*/
94-
#ifndef TASK_SIZE
95-
#define TASK_SIZE (CONFIG_DRAM_SIZE)
96-
#endif
94+
#define TASK_SIZE UL(0xffffffff)
9795

9896
#ifndef TASK_UNMAPPED_BASE
9997
#define TASK_UNMAPPED_BASE UL(0x00000000)

0 commit comments

Comments
 (0)