[PATCH] freebsd/sys: Fixed un_mapped_buf error for MVME2500 (qoriq_e500)

Uchenna Ezeobi uchenna.ezeobi3 at gmail.com
Wed Nov 15 18:24:04 UTC 2023


---
 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



More information about the devel mailing list