1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Cast mdp (a vm_offset_t) to void * to match prototype.

Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-12-03 04:54:59 +00:00
parent a76b2d3d57
commit 2d35a371fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326487
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ __elfN(ofw_exec)(struct preloaded_file *fp)
if (dtbp != 0) {
OF_quiesce();
((int (*)(u_long, u_long, u_long, void *, u_long))entry)(dtbp, 0, 0,
mdp, sizeof(mdp));
(void *)mdp, sizeof(mdp));
} else {
OF_chain((void *)reloc, end - (char *)reloc, (void *)entry,
(void *)mdp, 0xfb5d104d);

View File

@ -95,7 +95,7 @@ ppc64_ofw_elf_exec(struct preloaded_file *fp)
if (dtbp != 0) {
OF_quiesce();
((int (*)(u_long, u_long, u_long, void *, u_long))entry)(dtbp,
0, 0, mdp, 0xfb5d104d);
0, 0, (void *)mdp, 0xfb5d104d);
} else {
OF_chain((void *)reloc, end - (char *)reloc, (void *)entry,
(void *)mdp, 0xfb5d104d);