Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: define TASK_UNMAPPED_BASE as a page aligned constant

b4265f12340f809447b9a48055e88c444b480c89
(mm: use vm_unmapped_area() on sh architecture)
broke sh boot. This patch define TASK_UNMAPPED_BASE
as a page aligned constant to solve this issue.
Special thanks to Michel

Acked-by: Michel Lespinasse <walken@google.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Kuninori Morimoto and committed by
Paul Mundt
30c254ff 254adaa4

+2 -2
+1 -1
arch/sh/include/asm/processor_32.h
··· 39 39 /* This decides where the kernel will search for a free chunk of vm 40 40 * space during mmap's. 41 41 */ 42 - #define TASK_UNMAPPED_BASE (TASK_SIZE / 3) 42 + #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) 43 43 44 44 /* 45 45 * Bit of SR register
+1 -1
arch/sh/include/asm/processor_64.h
··· 47 47 /* This decides where the kernel will search for a free chunk of vm 48 48 * space during mmap's. 49 49 */ 50 - #define TASK_UNMAPPED_BASE (TASK_SIZE / 3) 50 + #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) 51 51 52 52 /* 53 53 * Bit of SR register