xtensa: nommu: reserve memory below PLATFORM_DEFAULT_MEM_START
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 3 Oct 2014 23:46:34 +0000 (03:46 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 21 Oct 2014 09:28:57 +0000 (13:28 +0400)
commit566fb58ed422537715023d1f19b705247a640b11
tree9051c7de2de61b18e0cceb1f63a81e094b5d6f1a
parent2eabc1800d1ef7a850672aedcc266a831572af63
xtensa: nommu: reserve memory below PLATFORM_DEFAULT_MEM_START

Memory accounting code can't handle pages below
PLATFORM_DEFAULT_MEM_START. Reserve those pages if they exist.
When PLATFORM_DEFAULT_MEM_START is zero reserve one page at address 0 to
make sure that successfull memory allocations don't return NULL.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/mm/init.c