From 0d23ec984c6180c1cc9c0e5b45397d34eedea502 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 6 Jul 2012 12:23:37 -0500 Subject: [PATCH] Disable conflicts with RTEMS --- freebsd/i386/include/freebsd/machine/cpufunc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/freebsd/i386/include/freebsd/machine/cpufunc.h b/freebsd/i386/include/freebsd/machine/cpufunc.h index cd82c687..093e38a4 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);