• Nicolas Pitre's avatar
    ARM: 8700/1: nommu: always reserve address 0 away · 195320fd
    Nicolas Pitre authored
    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: default avatarNicolas Pitre <nico@linaro.org>
    Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
    195320fd
nommu.c 12 KB