summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys/systm.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/sys/systm.h')
-rw-r--r--freebsd/sys/sys/systm.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/freebsd/sys/sys/systm.h b/freebsd/sys/sys/systm.h
index aae31704..29320f93 100644
--- a/freebsd/sys/sys/systm.h
+++ b/freebsd/sys/sys/systm.h
@@ -83,7 +83,8 @@ extern int boothowto; /* reboot flags, from console subsystem */
extern int bootverbose; /* nonzero to print verbose messages */
#else /* __rtems__ */
#ifdef BOOTVERBOSE
-extern int bootverbose; /* nonzero to print verbose messages */
+extern int rtems_bsd_bootverbose; /* nonzero to print verbose messages */
+#define bootverbose rtems_bsd_bootverbose
#else
#define bootverbose 0 /* Remove all verbose code for the standard RTEMS build */
#endif /* BOOTVERBOSE */
@@ -408,6 +409,20 @@ int copyout_nofault(const void * _Nonnull __restrict kaddr,
#else /* __rtems__ */
static inline int
+copystr(const void * _Nonnull __restrict kfaddr,
+ void * _Nonnull __restrict kdaddr, size_t len,
+ size_t * __restrict lencopied)
+{
+ if (lencopied != NULL) {
+ *lencopied = len;
+ }
+
+ memcpy(kdaddr, kfaddr, len);
+
+ return (0);
+}
+
+static inline int
copyinstr(const void * __restrict udaddr, void * __restrict kaddr,
size_t len, size_t * __restrict lencopied)
{