Sun Jan 23 17:38:37 2011 UTC ()
Add support for __read_mostly and __cacheline_aligned (using 32 bytes as
the cacheline as its the most prevalent sized used even though IBM970 has
a 128 byte cacheline).


(matt)
diff -r1.2 -r1.3 src/sys/arch/powerpc/conf/kern.ldscript

cvs diff -r1.2 -r1.3 src/sys/arch/powerpc/conf/kern.ldscript (expand / switch to context diff)
--- src/sys/arch/powerpc/conf/kern.ldscript 2011/01/18 01:02:53 1.2
+++ src/sys/arch/powerpc/conf/kern.ldscript 2011/01/23 17:38:37 1.3
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript,v 1.2 2011/01/18 01:02:53 matt Exp $ */
+/* $NetBSD: kern.ldscript,v 1.3 2011/01/23 17:38:37 matt Exp $ */
 
 /*  ldscript for NetBSD/powerpc kernels and LKMs */
 OUTPUT_ARCH(powerpc)
@@ -31,6 +31,12 @@
     *(.data)
     CONSTRUCTORS
   }
+  .data1			: { *(.data1) }
+  . = ALIGN(32);	/* COHERENCY UNIT */
+  .data.cacheline_aligned	: { *(.data.cacheline_aligned) }
+  . = ALIGN(32);	/* COHERENCY UNIT */
+  .data.read_mostly		: { *(.data.read_mostly) }
+  . = ALIGN(32);	/* COHERENCY UNIT */
   _gp = ALIGN(16) + 0x7ff0;
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }