aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorRune Torgersen <runet@innovsys.com>2008-05-23 11:59:15 -0400
committerPaul Mackerras <paulus@samba.org>2008-06-08 23:46:40 -0400
commit7c4f10b9003dc8423df07574ba197bbbe3bc382b (patch)
treebe7dd0f555d4ae07a320dca922d1b8e96f517901 /include/asm-powerpc
parentcec0dd94cf2628d5ba184e725f02be061e7bb014 (diff)
powerpc: Check that TASK_SIZE does not overlap KERNEL_START
Make sure CONFIG_TASK_SIZE does not overlap CONFIG_KERNEL_START This could happen when overriding settings to get 1GB lowmem, and would lead to userland mysteriousely hanging. This setting is only used by PPC32. Signed-off-by: Rune Torgersen <runet@innovsys.com> Acked-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/processor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/processor.h b/include/asm-powerpc/processor.h
index cf83f2d7e2a5..a1deed85f31d 100644
--- a/include/asm-powerpc/processor.h
+++ b/include/asm-powerpc/processor.h
@@ -81,6 +81,10 @@ extern struct task_struct *last_task_used_altivec;
81extern struct task_struct *last_task_used_spe; 81extern struct task_struct *last_task_used_spe;
82 82
83#ifdef CONFIG_PPC32 83#ifdef CONFIG_PPC32
84
85#if CONFIG_TASK_SIZE > CONFIG_KERNEL_START
86#error User TASK_SIZE overlaps with KERNEL_START address
87#endif
84#define TASK_SIZE (CONFIG_TASK_SIZE) 88#define TASK_SIZE (CONFIG_TASK_SIZE)
85 89
86/* This decides where the kernel will search for a free chunk of vm 90/* This decides where the kernel will search for a free chunk of vm