powerpc: Bump maximum number of FDT reserved mem entries

Newer firmware on POWER systems, including v2.10 of the Talos II and
Blackbird firmware can end up reserving more than 32 memory regions in
the device tree, which exceeded an assumption made by ofw_machdep.c's
excise_fdt_reserved(). Bump the maximum number of FDT reservations to
the next power of 2 in order to fix booting on newer firmware.

PR:		277097
Reviewed by:	jhibbits
Differential Revision: https://reviews.freebsd.org/D44015
This commit is contained in:
Shawn Anastasio 2024-02-27 14:40:50 -05:00 committed by Justin Hibbits
parent 5db5c6c87a
commit b52dceb838

View File

@ -426,7 +426,7 @@ excise_msi_region(struct mem_region *avail, int asz)
static int
excise_fdt_reserved(struct mem_region *avail, int asz)
{
struct mem_region fdtmap[32];
struct mem_region fdtmap[64];
ssize_t fdtmapsize;
phandle_t chosen;
int j, fdtentries;