diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-07-31 11:52:16 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-07-31 11:52:16 +0200 |
commit | 2fc413a47ef5aefd9db9d2abebfa63e3050e5e3b (patch) | |
tree | b26d66a39aab424aebc25bce14f5d7c897fb6d68 | |
parent | rtems-bsd-mutex: Update due to API changes (diff) | |
download | rtems-libbsd-2fc413a47ef5aefd9db9d2abebfa63e3050e5e3b.tar.bz2 |
i386: Make <machine/cpufunc.h> compile clean
-rw-r--r-- | freebsd/sys/i386/include/machine/cpufunc.h | 4 |
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) */ |