Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys don't propagate __read_mostly and __cacheline_aligne...
details: https://anonhg.NetBSD.org/src/rev/3a43e8fef6aa
branches: trunk
changeset: 756007:3a43e8fef6aa
user: cegger <cegger%NetBSD.org@localhost>
date: Fri Jul 02 11:38:20 2010 +0000
description:
don't propagate __read_mostly and __cacheline_aligned to userland.
Uncovered by Xen build failures. Xen includes this header
through <stdarg.h>, but COHERENCY_UNIT is undefined.
'this fix should be done in HEAD' mjf@
diffstat:
sys/sys/cdefs_elf.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 60a3b0fb6118 -r 3a43e8fef6aa sys/sys/cdefs_elf.h
--- a/sys/sys/cdefs_elf.h Fri Jul 02 10:45:16 2010 +0000
+++ b/sys/sys/cdefs_elf.h Fri Jul 02 11:38:20 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs_elf.h,v 1.31 2010/06/01 22:13:30 mjf Exp $ */
+/* $NetBSD: cdefs_elf.h,v 1.32 2010/07/02 11:38:20 cegger Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -160,6 +160,9 @@
#define __link_set_count(set) \
(__link_set_end(set) - __link_set_start(set))
+
+#ifdef _KERNEL
+
/*
* On multiprocessor systems we can gain an improvement in performance
* by being mindful of which cachelines data is placed in.
@@ -194,4 +197,6 @@
__attribute__((__aligned__(COHERENCY_UNIT) \
__section__(".data.cacheline_aligned")))
+#endif /* _KERNEL */
+
#endif /* !_SYS_CDEFS_ELF_H_ */
Home |
Main Index |
Thread Index |
Old Index