mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
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:
parent
5db5c6c87a
commit
b52dceb838
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user