aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stand/ofw/libofw/elf_freebsd.c3
-rw-r--r--stand/ofw/libofw/ppc64_elf_freebsd.c1
-rw-r--r--stand/powerpc/boot1.chrp/boot1.c3
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 <machine/metadata.h>
#include <machine/elf.h>
+#if defined(__powerpc__)
+#include <machine/md_var.h>
+#endif
#include <stand.h>
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 <machine/metadata.h>
#include <machine/elf.h>
+#include <machine/md_var.h>
#include <stand.h>
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 <sys/dirent.h>
#include <machine/elf.h>
#include <machine/stdarg.h>
+#include <machine/md_var.h>
#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
*/