]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8700/1: nommu: always reserve address 0 away
authorNicolas Pitre <nicolas.pitre@linaro.org>
Sun, 1 Oct 2017 01:06:27 +0000 (02:06 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 12 Oct 2017 10:18:17 +0000 (11:18 +0100)
commit9e2417575aaed13e505ca080ebe0b45211eadcb1
tree97ad40707dfb7d352ee770661a239beedc66bffa
parent2018862bdad13479b663e0e9615d7c6fcaa89285
ARM: 8700/1: nommu: always reserve address 0 away

Some nommu systems have RAM at address 0. When vectors are not located
there, the very beginning of memory remains available for dynamic
allocations. The memblock allocator explicitly skips the first page
but the standard page allocator does not, and while it correctly returns
a non-null struct page pointer for that page, page_address() gives 0
which gets confused with NULL (out of memory) by callers despite having
plenty of free memory left.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/nommu.c