aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/processor.h
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2010-05-24 11:22:05 +1000
committerGreg Ungerer <gerg@uclinux.org>2010-05-24 13:29:54 +1000
commitcc24c405949e3d4418a90014d10166679d78141a (patch)
tree4348ca3ae3839f794e1326499f0da51dbad1271e /arch/m68k/include/asm/processor.h
parent9fcce0baea6628af935b1b485d6606a5a377a052 (diff)
downloadkernel_samsung_smdk4412-cc24c405949e3d4418a90014d10166679d78141a.zip
kernel_samsung_smdk4412-cc24c405949e3d4418a90014d10166679d78141a.tar.gz
kernel_samsung_smdk4412-cc24c405949e3d4418a90014d10166679d78141a.tar.bz2
m68knommu: remove size limit on non-MMU TASK_SIZE
The TASK_SIZE define is used in some places as a limit on the size of the virtual address space of a process. On non-MMU systems those addresses used in comparison will be physical addresses, and they could be anywhere in the 32bit physical address space. So for !CONFIG_MMU systems set the TASK_SIZE to the maximum physical address. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include/asm/processor.h')
-rw-r--r--arch/m68k/include/asm/processor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/processor.h b/arch/m68k/include/asm/processor.h
index cbd3d47..7a6a759 100644
--- a/arch/m68k/include/asm/processor.h
+++ b/arch/m68k/include/asm/processor.h
@@ -44,11 +44,15 @@ static inline void wrusp(unsigned long usp)
* User space process size: 3.75GB. This is hardcoded into a few places,
* so don't change it unless you know what you are doing.
*/
+#ifdef CONFIG_MMU
#ifndef CONFIG_SUN3
#define TASK_SIZE (0xF0000000UL)
#else
#define TASK_SIZE (0x0E000000UL)
#endif
+#else
+#define TASK_SIZE (0xFFFFFFFFUL)
+#endif
#ifdef __KERNEL__
#define STACK_TOP TASK_SIZE