[rtems-libbsd commit] Disable conflicts with RTEMS
Joel Sherrill
joel at rtems.org
Fri Jul 6 17:20:13 UTC 2012
Module: rtems-libbsd
Branch: master
Commit: 0d23ec984c6180c1cc9c0e5b45397d34eedea502
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=0d23ec984c6180c1cc9c0e5b45397d34eedea502
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Fri Jul 6 12:23:37 2012 -0500
Disable conflicts with RTEMS
---
freebsd/i386/include/freebsd/machine/cpufunc.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/freebsd/i386/include/freebsd/machine/cpufunc.h b/freebsd/i386/include/freebsd/machine/cpufunc.h
index cd82c68..093e38a 100644
--- a/freebsd/i386/include/freebsd/machine/cpufunc.h
+++ b/freebsd/i386/include/freebsd/machine/cpufunc.h
@@ -65,11 +65,13 @@ struct region_descriptor;
#if defined(__GNUCLIKE_ASM) && defined(__CC_SUPPORTS___INLINE)
+#ifndef __rtems__
static __inline void
breakpoint(void)
{
__asm __volatile("int $3");
}
+#endif
static __inline u_int
bsfl(u_int mask)
@@ -170,11 +172,13 @@ ffs(int mask)
#define HAVE_INLINE_FLS
+#ifndef __rtems__
static __inline int
fls(int mask)
{
return (mask == 0 ? mask : (int)bsrl((u_int)mask) + 1);
}
+#endif
#endif /* _KERNEL */
@@ -674,7 +678,9 @@ intr_restore(register_t eflags)
#else /* !(__GNUCLIKE_ASM && __CC_SUPPORTS___INLINE) */
+#ifndef __rtems__
int breakpoint(void);
+#endif
u_int bsfl(u_int mask);
u_int bsrl(u_int mask);
void disable_intr(void);
More information about the vc
mailing list