[rtems-libbsd commit] intrmask_t: Provide dummy type definition
Sebastian Huber
sebh at rtems.org
Mon Apr 18 13:19:25 UTC 2016
Module: rtems-libbsd
Branch: master
Commit: c5fde4960cf47f641d982b581acfeb9d9ab1cea7
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=c5fde4960cf47f641d982b581acfeb9d9ab1cea7
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Apr 18 14:47:49 2016 +0200
intrmask_t: Provide dummy type definition
---
freebsd/sys/sys/systm.h | 3 +++
rtemsbsd/include/rtems/bsd/sys/_types.h | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/freebsd/sys/sys/systm.h b/freebsd/sys/sys/systm.h
index c761555..6ac0491 100644
--- a/freebsd/sys/sys/systm.h
+++ b/freebsd/sys/sys/systm.h
@@ -435,6 +435,9 @@ caddr_t kern_timeout_callwheel_alloc(caddr_t v);
void kern_timeout_callwheel_init(void);
/* Stubs for obsolete functions that used to be for interrupt management */
+#ifdef __rtems__
+typedef int intrmask_t;
+#endif /* __rtems__ */
static __inline void spl0(void) { return; }
static __inline intrmask_t splbio(void) { return 0; }
static __inline intrmask_t splcam(void) { return 0; }
diff --git a/rtemsbsd/include/rtems/bsd/sys/_types.h b/rtemsbsd/include/rtems/bsd/sys/_types.h
index 76ec244..a61d47a 100644
--- a/rtemsbsd/include/rtems/bsd/sys/_types.h
+++ b/rtemsbsd/include/rtems/bsd/sys/_types.h
@@ -143,8 +143,6 @@ typedef float __float_t;
typedef intptr_t intfptr_t;
typedef uintptr_t uintfptr_t;
-typedef uint32_t intrmask_t;
-
typedef time_t __time_t;
typedef ptrdiff_t __ptrdiff_t;
More information about the vc
mailing list