[libbsd 18/22] Move unmapped_buf_allowed
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Jun 24 06:33:46 UTC 2022
rtems_bsd_initialize() should initialize the bare minimum.
Update #4475.
---
freebsd/sys/kern/vfs_bio.c | 3 +++
rtemsbsd/rtems/rtems-kernel-init.c | 1 -
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/freebsd/sys/kern/vfs_bio.c b/freebsd/sys/kern/vfs_bio.c
index 1177b907..7be96690 100644
--- a/freebsd/sys/kern/vfs_bio.c
+++ b/freebsd/sys/kern/vfs_bio.c
@@ -327,6 +327,9 @@ SYSCTL_COUNTER_U64(_vfs, OID_AUTO, notbufdflushes, CTLFLAG_RD, ¬bufdflushes,
static long barrierwrites;
SYSCTL_LONG(_vfs, OID_AUTO, barrierwrites, CTLFLAG_RW, &barrierwrites, 0,
"Number of barrier writes");
+#ifdef __rtems__
+int unmapped_buf_allowed;
+#endif /* __rtems__ */
SYSCTL_INT(_vfs, OID_AUTO, unmapped_buf_allowed, CTLFLAG_RD,
&unmapped_buf_allowed, 0,
"Permit the use of the unmapped i/o");
diff --git a/rtemsbsd/rtems/rtems-kernel-init.c b/rtemsbsd/rtems/rtems-kernel-init.c
index 11c1861b..9b24ba6d 100644
--- a/rtemsbsd/rtems/rtems-kernel-init.c
+++ b/rtemsbsd/rtems/rtems-kernel-init.c
@@ -108,7 +108,6 @@ sbintime_t tc_tick_sbt;
int tc_precexp;
int maxproc;
int ngroups_max;
-int unmapped_buf_allowed;
caddr_t unmapped_base;
long maxbcache;
struct sx allproc_lock;
--
2.35.3
More information about the devel
mailing list