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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to