summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2014-10-13 15:21:14 -0400
committerGedare Bloom <gedare@rtems.org>2014-10-13 15:21:14 -0400
commita0f27360c9bcc4a56e9fba4cfb0c19b689977cd5 (patch)
treeadeb513119ac2d6430f45c9ecd1f1242cf2b52e4
parent2d7029d55940d9fcf1101c7702d86dae17474769 (diff)
downloadrtems-a0f27360c9bcc4a56e9fba4cfb0c19b689977cd5.tar.bz2
sparc64: fix warnings for ofw function calls
-rw-r--r--c/src/lib/libbsp/sparc64/shared/console/conscfg.c3
-rw-r--r--c/src/lib/libbsp/sparc64/shared/helenos/boot/include/ofw.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sparc64/shared/console/conscfg.c b/c/src/lib/libbsp/sparc64/shared/console/conscfg.c
index f80fd5d14e..648eca06cb 100644
--- a/c/src/lib/libbsp/sparc64/shared/console/conscfg.c
+++ b/c/src/lib/libbsp/sparc64/shared/console/conscfg.c
@@ -10,8 +10,7 @@
#include <libchip/serial.h>
-extern void ofw_write(const char *,const int );
-extern void ofw_read(void *,int );
+#include <boot/ofw.h>
int sun4v_console_device_first_open(int major, int minor, void *arg)
{
diff --git a/c/src/lib/libbsp/sparc64/shared/helenos/boot/include/ofw.h b/c/src/lib/libbsp/sparc64/shared/helenos/boot/include/ofw.h
index c64e546caf..c562b675a2 100644
--- a/c/src/lib/libbsp/sparc64/shared/helenos/boot/include/ofw.h
+++ b/c/src/lib/libbsp/sparc64/shared/helenos/boot/include/ofw.h
@@ -100,6 +100,8 @@ extern int ofw_package_to_path(const phandle device, char *buf, const int buflen
extern int ofw(ofw_args_t *arg);
extern unsigned long ofw_call(const char *service, const int nargs, const int nret, ofw_arg_t *rets, ...);
+extern void ofw_write(const char *str, const int len);
+extern void ofw_read(void *str, const int len);
extern unsigned int ofw_get_address_cells(const phandle device);
extern unsigned int ofw_get_size_cells(const phandle device);
extern void *ofw_translate(const void *virt);