svn commit: r277516 - head/sys/arm/arm

Ian Lepore ian at FreeBSD.org
Wed Jan 21 21:31:27 UTC 2015


Author: ian
Date: Wed Jan 21 21:31:26 2015
New Revision: 277516
URL: https://svnweb.freebsd.org/changeset/base/277516

Log:
  Move the __aligned() declaration to where it will actually do something.

Modified:
  head/sys/arm/arm/bus_space_base.c

Modified: head/sys/arm/arm/bus_space_base.c
==============================================================================
--- head/sys/arm/arm/bus_space_base.c	Wed Jan 21 20:32:36 2015	(r277515)
+++ head/sys/arm/arm/bus_space_base.c	Wed Jan 21 21:31:26 2015	(r277516)
@@ -45,7 +45,7 @@ bs_protos(generic);
  * The bus space tag.  This is constant for all instances, so
  * we never have to explicitly "create" it.
  */
-static struct bus_space arm_base_bus_space = {
+static struct bus_space arm_base_bus_space __aligned(CACHE_LINE_SIZE) = {
 	/* privdata is whatever the implementer wants; unused in base tag */
 	.bs_privdata	= NULL,
 
@@ -150,7 +150,7 @@ static struct bus_space arm_base_bus_spa
 	.bs_wr_2_s	= generic_bs_wr_2,
 	.bs_wr_4_s	= generic_bs_wr_4,
 	.bs_wr_8_s	= BS_UNIMPLEMENTED,
-} __aligned(CACHE_LINE_SIZE);
+};
 
 #ifdef FDT
 bus_space_tag_t fdtbus_bs_tag = &arm_base_bus_space;


More information about the svn-src-head mailing list