[PATCH rtems-libbsd 01/14] sys/bus.h: Fix for small-data area targets
Christian Mauderer
christian.mauderer at embedded-brains.de
Tue Jan 23 09:09:02 UTC 2024
From: Sebastian Huber <sebastian.huber at embedded-brains.de>
---
freebsd/sys/sys/buf.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/freebsd/sys/sys/buf.h b/freebsd/sys/sys/buf.h
index 209174b4..dfe3eaa6 100644
--- a/freebsd/sys/sys/buf.h
+++ b/freebsd/sys/sys/buf.h
@@ -497,7 +497,11 @@ extern int cluster_pbuf_freecnt; /* Number of pbufs for clusters */
extern int vnode_pbuf_freecnt; /* Number of pbufs for vnode pager */
extern int vnode_async_pbuf_freecnt; /* Number of pbufs for vnode pager,
asynchronous reads */
+#ifndef __rtems__
extern caddr_t unmapped_buf; /* Data address for unmapped buffers. */
+#else /* __rtems__ */
+extern caddr_t __read_mostly unmapped_buf;
+#endif /* __rtems__ */
static inline int
buf_mapped(struct buf *bp)
--
2.35.3
More information about the devel
mailing list