limit physical memory to (paddr_t)-PAGE_SIZE (0xfffff000)
authorjsg <jsg@openbsd.org>
Sun, 10 May 2015 05:42:46 +0000 (05:42 +0000)
committerjsg <jsg@openbsd.org>
Sun, 10 May 2015 05:42:46 +0000 (05:42 +0000)
commita5b7bc8b7dfdd48b2ec27aa6a6edd4fc4add5def
treec3569fe7c47d4c0f999539233176ba6ca090aeaa
parent76f128c7f0deff2a1d0066de217e9d8a7bb16de7
limit physical memory to (paddr_t)-PAGE_SIZE (0xfffff000)

novena has 4GB of physical memory and it's u-boot tells us
memstart: 0x10000000
memsize:  0xf0000000

which would previously cause an overflow leading to
"panic: initarm: out of memory"

tweak from and ok miod@
sys/arch/armv7/armv7/armv7_machdep.c