Cast mdp (a vm_offset_t) to void * to match prototype.
Sponsored by: Netflix
This commit is contained in:
parent
ae1591e4fe
commit
26911ce567
@ -91,7 +91,7 @@ __elfN(ofw_exec)(struct preloaded_file *fp)
|
|||||||
if (dtbp != 0) {
|
if (dtbp != 0) {
|
||||||
OF_quiesce();
|
OF_quiesce();
|
||||||
((int (*)(u_long, u_long, u_long, void *, u_long))entry)(dtbp, 0, 0,
|
((int (*)(u_long, u_long, u_long, void *, u_long))entry)(dtbp, 0, 0,
|
||||||
mdp, sizeof(mdp));
|
(void *)mdp, sizeof(mdp));
|
||||||
} else {
|
} else {
|
||||||
OF_chain((void *)reloc, end - (char *)reloc, (void *)entry,
|
OF_chain((void *)reloc, end - (char *)reloc, (void *)entry,
|
||||||
(void *)mdp, 0xfb5d104d);
|
(void *)mdp, 0xfb5d104d);
|
||||||
|
@ -95,7 +95,7 @@ ppc64_ofw_elf_exec(struct preloaded_file *fp)
|
|||||||
if (dtbp != 0) {
|
if (dtbp != 0) {
|
||||||
OF_quiesce();
|
OF_quiesce();
|
||||||
((int (*)(u_long, u_long, u_long, void *, u_long))entry)(dtbp,
|
((int (*)(u_long, u_long, u_long, void *, u_long))entry)(dtbp,
|
||||||
0, 0, mdp, 0xfb5d104d);
|
0, 0, (void *)mdp, 0xfb5d104d);
|
||||||
} else {
|
} else {
|
||||||
OF_chain((void *)reloc, end - (char *)reloc, (void *)entry,
|
OF_chain((void *)reloc, end - (char *)reloc, (void *)entry,
|
||||||
(void *)mdp, 0xfb5d104d);
|
(void *)mdp, 0xfb5d104d);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user