Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/conf Add support for __read_mostly and __ca...
details: https://anonhg.NetBSD.org/src/rev/299df2aa0dbb
branches: trunk
changeset: 761317:299df2aa0dbb
user: matt <matt%NetBSD.org@localhost>
date: Sun Jan 23 17:38:37 2011 +0000
description:
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).
diffstat:
sys/arch/powerpc/conf/kern.ldscript | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r c3f6ec2cf8b7 -r 299df2aa0dbb sys/arch/powerpc/conf/kern.ldscript
--- a/sys/arch/powerpc/conf/kern.ldscript Sun Jan 23 17:36:09 2011 +0000
+++ b/sys/arch/powerpc/conf/kern.ldscript Sun Jan 23 17:38:37 2011 +0000
@@ -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) }
Home |
Main Index |
Thread Index |
Old Index