summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-10-30 06:23:32 +0000
committerjake <jake@FreeBSD.org>2001-10-30 06:23:32 +0000
commit36e649fc50fadb400be092098cc64b53bbf82a7a (patch)
tree1f418173d80a65afc73c90fe64edf391e9c9696d /sys/boot/ofw
parent0b566da3e2320a87272134f4429aa46af9b9e511 (diff)
downloadFreeBSD-src-36e649fc50fadb400be092098cc64b53bbf82a7a.zip
FreeBSD-src-36e649fc50fadb400be092098cc64b53bbf82a7a.tar.gz
Make the openfirmware entry point function pointer non-static so that it
can be passed to the kernel.
Diffstat (limited to 'sys/boot/ofw')
-rw-r--r--sys/boot/ofw/libofw/openfirm.c3
-rw-r--r--sys/boot/ofw/libofw/openfirm.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/openfirm.c b/sys/boot/ofw/libofw/openfirm.c
index fc02855..3970d95 100644
--- a/sys/boot/ofw/libofw/openfirm.c
+++ b/sys/boot/ofw/libofw/openfirm.c
@@ -63,7 +63,8 @@
#include "openfirm.h"
-static int (*openfirmware)(void *);
+int (*openfirmware)(void *);
+
static ihandle_t stdin;
static ihandle_t stdout;
diff --git a/sys/boot/ofw/libofw/openfirm.h b/sys/boot/ofw/libofw/openfirm.h
index 2da749f..90e9d9e 100644
--- a/sys/boot/ofw/libofw/openfirm.h
+++ b/sys/boot/ofw/libofw/openfirm.h
@@ -69,6 +69,7 @@ typedef unsigned int ihandle_t;
typedef unsigned int phandle_t;
typedef unsigned long int cell_t;
+extern int (*openfirmware)(void *);
extern phandle_t chosen;
/*
OpenPOWER on IntegriCloud