Module Name: src
Committed By: cegger
Date: Fri Jul 2 11:38:20 UTC 2010
Modified Files:
src/sys/sys: cdefs_elf.h
Log Message:
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@
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/sys/cdefs_elf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/cdefs_elf.h
diff -u src/sys/sys/cdefs_elf.h:1.31 src/sys/sys/cdefs_elf.h:1.32
--- src/sys/sys/cdefs_elf.h:1.31 Tue Jun 1 22:13:30 2010
+++ src/sys/sys/cdefs_elf.h Fri Jul 2 11:38:20 2010
@@ -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_ */