Module Name:    src
Committed By:   matt
Date:           Sun Jan 23 17:38:37 UTC 2011

Modified Files:
        src/sys/arch/powerpc/conf: kern.ldscript

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/powerpc/conf/kern.ldscript

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/conf/kern.ldscript
diff -u src/sys/arch/powerpc/conf/kern.ldscript:1.2 src/sys/arch/powerpc/conf/kern.ldscript:1.3
--- src/sys/arch/powerpc/conf/kern.ldscript:1.2	Tue Jan 18 01:02:53 2011
+++ src/sys/arch/powerpc/conf/kern.ldscript	Sun Jan 23 17:38:37 2011
@@ -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) }

Reply via email to