Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2015 03:24:19 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277470 - in head/sys/arm: arm include
Message-ID:  <201501210324.t0L3OJ96016954@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501210324.t0L3OJ96016954>