From a76b2d3d57e86630ebf23d340ee6dc5b622e7466 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 3 Dec 2017 04:54:54 +0000 Subject: [PATCH] Include machine/md_var to pick up __syncicache prototype. Sponsored by: Netflix --- stand/ofw/libofw/elf_freebsd.c | 3 +++ stand/ofw/libofw/ppc64_elf_freebsd.c | 1 + stand/powerpc/boot1.chrp/boot1.c | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stand/ofw/libofw/elf_freebsd.c b/stand/ofw/libofw/elf_freebsd.c index 9a53300a06c3..819e08419643 100644 --- a/stand/ofw/libofw/elf_freebsd.c +++ b/stand/ofw/libofw/elf_freebsd.c @@ -32,6 +32,9 @@ __FBSDID("$FreeBSD$"); #include #include +#if defined(__powerpc__) +#include +#endif #include diff --git a/stand/ofw/libofw/ppc64_elf_freebsd.c b/stand/ofw/libofw/ppc64_elf_freebsd.c index 8ac612a9f657..27a7ae78653b 100644 --- a/stand/ofw/libofw/ppc64_elf_freebsd.c +++ b/stand/ofw/libofw/ppc64_elf_freebsd.c @@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include diff --git a/stand/powerpc/boot1.chrp/boot1.c b/stand/powerpc/boot1.chrp/boot1.c index 8de8e9f17f41..e73186a0ddf1 100644 --- a/stand/powerpc/boot1.chrp/boot1.c +++ b/stand/powerpc/boot1.chrp/boot1.c @@ -22,6 +22,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include "paths.h" @@ -75,8 +76,6 @@ static int __sputc(char c, void *arg); static char *__uitoa(char *buf, u_int val, int base); static char *__ultoa(char *buf, u_long val, int base); -void __syncicache(void *, int); - /* * Open Firmware interface functions */