HomeFreeBSD

powerpc/booke: Fix size check for phys_avail in pmap bootstrap

Description

powerpc/booke: Fix size check for phys_avail in pmap bootstrap

Use the nitems() macro instead of the expansion, a'la r298352. Also, fix the
location of this check to after initializing availmem_regions_sz, so that the
check isn't always against 0, thus always failing (nitems(phys_avail) is always
more than 0).

Details

Provenance
jhibbitsAuthored on
Parents
rS347163: MFC r337706:
Branches
Unknown
Tags
Unknown