mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
[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:
parent
efeedddcb5
commit
8883b17065
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359687
|
@ -120,7 +120,7 @@ ofwfdt_fixups(void *fdtp)
|
||||||
/* Instantiate RTAS */
|
/* Instantiate RTAS */
|
||||||
rtas = OF_open(path);
|
rtas = OF_open(path);
|
||||||
base = 0;
|
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);
|
&base);
|
||||||
|
|
||||||
/* Store info to FDT using Linux convention */
|
/* Store info to FDT using Linux convention */
|
||||||
|
|
Loading…
Reference in a new issue