---
 freebsd/sys/sys/systm.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/freebsd/sys/sys/systm.h b/freebsd/sys/sys/systm.h
index 4ad0ad8c..4dcbacee 100644
--- a/freebsd/sys/sys/systm.h
+++ b/freebsd/sys/sys/systm.h
@@ -190,10 +190,17 @@ void      kassert_panic(const char *fmt, ...)  
__printflike(1, 2);
 /*
  * Align variables.
  */
+#ifndef __rtems__
 #define        __read_mostly           __section(".data.read_mostly")
 #define        __read_frequently       __section(".data.read_frequently")
 #define        __exclusive_cache_line  __aligned(CACHE_LINE_SIZE) \
                                    __section(".data.exclusive_cache_line")
+
+#else /* __rtems__ */
+#define __read_mostly
+#define __read_frequently
+#define __exclusive_cache_line __aligned(CACHE_LINE_SIZE)
+#endif /*__rtems__*/
 /*
  * XXX the hints declarations are even more misplaced than most declarations
  * in this file, since they are needed in one file (per arch) and only used
-- 
2.39.3

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to