Skip to content

Commit

Permalink
sh: define TASK_UNMAPPED_BASE as a page aligned constant
Browse files Browse the repository at this point in the history
b4265f1
(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 <[email protected]>
Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
  • Loading branch information
morimoto authored and pmundt committed Jan 11, 2013
1 parent 254adaa commit 30c254f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/sh/include/asm/processor_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
*/
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
#define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)

/*
* Bit of SR register
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/include/asm/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pc; })
/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
*/
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
#define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)

/*
* Bit of SR register
Expand Down

0 comments on commit 30c254f

Please sign in to comment.