summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-07-31 11:52:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-07-31 11:52:16 +0200
commit2fc413a47ef5aefd9db9d2abebfa63e3050e5e3b (patch)
treeb26d66a39aab424aebc25bce14f5d7c897fb6d68
parentrtems-bsd-mutex: Update due to API changes (diff)
downloadrtems-libbsd-2fc413a47ef5aefd9db9d2abebfa63e3050e5e3b.tar.bz2
i386: Make <machine/cpufunc.h> compile clean
-rw-r--r--freebsd/sys/i386/include/machine/cpufunc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sys/i386/include/machine/cpufunc.h b/freebsd/sys/i386/include/machine/cpufunc.h
index b41e8fea..1c519920 100644
--- a/freebsd/sys/i386/include/machine/cpufunc.h
+++ b/freebsd/sys/i386/include/machine/cpufunc.h
@@ -172,6 +172,7 @@ mfence(void)
#ifdef _KERNEL
+#ifndef __rtems__
#define HAVE_INLINE_FFS
static __inline int
@@ -187,6 +188,7 @@ ffs(int mask)
}
#define HAVE_INLINE_FLS
+#endif /* __rtems__ */
#ifndef __rtems__
static __inline int
@@ -685,6 +687,7 @@ write_cyrix_reg(u_char reg, u_char data)
outb(0x23, data);
}
+#ifndef __rtems__
static __inline register_t
intr_disable(void)
{
@@ -700,6 +703,7 @@ intr_restore(register_t eflags)
{
write_eflags(eflags);
}
+#endif /* __rtems__ */
#else /* !(__GNUCLIKE_ASM && __CC_SUPPORTS___INLINE) */