svn commit: r277470 - in head/sys/arm: arm include
Ian Lepore
ian at FreeBSD.org
Wed Jan 21 03:24:20 UTC 2015
Author: ian
Date: Wed Jan 21 03:24:18 2015
New Revision: 277470
URL: https://svnweb.freebsd.org/changeset/base/277470
Log:
Move bs_unimplemented() to bus_space_generic.c so it can be shared.
Modified:
head/sys/arm/arm/bus_space-v6.c
head/sys/arm/arm/bus_space_generic.c
head/sys/arm/include/bus.h
Modified: head/sys/arm/arm/bus_space-v6.c
==============================================================================
--- head/sys/arm/arm/bus_space-v6.c Wed Jan 21 03:22:37 2015 (r277469)
+++ head/sys/arm/arm/bus_space-v6.c Wed Jan 21 03:24:18 2015 (r277470)
@@ -39,15 +39,6 @@ __FBSDID("$FreeBSD$");
/* Prototypes for all the bus_space structure functions */
bs_protos(generic);
-static void
-bs_unimplemented(void)
-{
-
- panic("unimplemented bus_space function called");
-}
-
-#define BS_UNIMPLEMENTED (void *)bs_unimplemented
-
/*
* The bus space tag. This is constant for all instances, so
* we never have to explicitly "create" it.
Modified: head/sys/arm/arm/bus_space_generic.c
==============================================================================
--- head/sys/arm/arm/bus_space_generic.c Wed Jan 21 03:22:37 2015 (r277469)
+++ head/sys/arm/arm/bus_space_generic.c Wed Jan 21 03:24:18 2015 (r277470)
@@ -53,6 +53,13 @@ __FBSDID("$FreeBSD$");
#include <machine/cpufunc.h>
#include <machine/devmap.h>
+void
+generic_bs_unimplemented(void)
+{
+
+ panic("unimplemented bus_space function called");
+}
+
/* Prototypes for all the bus_space structure functions */
bs_protos(generic);
Modified: head/sys/arm/include/bus.h
==============================================================================
--- head/sys/arm/include/bus.h Wed Jan 21 03:22:37 2015 (r277469)
+++ head/sys/arm/include/bus.h Wed Jan 21 03:24:18 2015 (r277470)
@@ -730,6 +730,9 @@ bs_c_2_proto(f); \
bs_c_4_proto(f); \
bs_c_8_proto(f);
+void generic_bs_unimplemented(void);
+#define BS_UNIMPLEMENTED (void *)generic_bs_unimplemented
+
#define BUS_SPACE_ALIGNED_POINTER(p, t) ALIGNED_POINTER(p, t)
#define BUS_SPACE_MAXADDR_24BIT 0xFFFFFF
More information about the svn-src-all
mailing list