[PPC] Fix loader call to instantiate-rtas

OpenFirmware (OF) method instantiate-rtas was being called with a wrong
rtas-base-address argument. It must use the memory that is already being
allocated to this end instead. This issue was causing QEMU netboot to hang
when building the FDT from OF DT.

Reviewed by:	jhibbits
Sponsored by:	Eldorado Research Institute (eldorado.org.br)
Differential Revision:	https://reviews.freebsd.org/D24313
This commit is contained in:
Leandro Lupori 2020-04-07 12:46:26 +00:00
parent efeedddcb5
commit 8883b17065

View File

@ -120,7 +120,7 @@ ofwfdt_fixups(void *fdtp)
/* Instantiate RTAS */
rtas = OF_open(path);
base = 0;
OF_call_method("instantiate-rtas", rtas, 1, 1, (cell_t)rtas,
OF_call_method("instantiate-rtas", rtas, 1, 1, (cell_t)rtasmem,
&base);
/* Store info to FDT using Linux convention */