summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/i386/include/machine/cpufunc.h
diff options
context:
space:
mode:
authorJan Sommer <jan.sommer@dlr.de>2020-04-17 10:24:08 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-17 13:18:06 +0200
commita69293ca57c5a42402d7bbc26c52c6221c7d2f43 (patch)
treecf97c3a0d0dd1fe4a96a28396e62fc838def1162 /freebsd/sys/i386/include/machine/cpufunc.h
parenti386: Delete old machine dependent files (diff)
downloadrtems-libbsd-a69293ca57c5a42402d7bbc26c52c6221c7d2f43.tar.bz2
i386: Port to RTEMS
- Update imported files to compile rtems-libbsd for i386 based BSPs - Mostly commenting out parts which create compile or link errors in RTEMS, but aren't needed
Diffstat (limited to 'freebsd/sys/i386/include/machine/cpufunc.h')
-rw-r--r--freebsd/sys/i386/include/machine/cpufunc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/sys/i386/include/machine/cpufunc.h b/freebsd/sys/i386/include/machine/cpufunc.h
index a029da3b..e50ef9d7 100644
--- a/freebsd/sys/i386/include/machine/cpufunc.h
+++ b/freebsd/sys/i386/include/machine/cpufunc.h
@@ -233,11 +233,13 @@ fls(int mask)
#define HAVE_INLINE_FLSL
+#ifndef __rtems__
static __inline __pure2 int
flsl(long mask)
{
return (fls((int)mask));
}
+#endif /* __rtems__ */
#endif /* _KERNEL */