Commit 30c254ff authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Paul Mundt

sh: define TASK_UNMAPPED_BASE as a page aligned constant

b4265f12
(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: default avatarMichel Lespinasse <walken@google.com>
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 254adaa4
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
/* This decides where the kernel will search for a free chunk of vm /* This decides where the kernel will search for a free chunk of vm
* space during mmap's. * space during mmap's.
*/ */
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3) #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
/* /*
* Bit of SR register * Bit of SR register
......
...@@ -47,7 +47,7 @@ pc; }) ...@@ -47,7 +47,7 @@ pc; })
/* This decides where the kernel will search for a free chunk of vm /* This decides where the kernel will search for a free chunk of vm
* space during mmap's. * space during mmap's.
*/ */
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3) #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
/* /*
* Bit of SR register * Bit of SR register
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment