summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/conf/files.ia641
-rw-r--r--sys/ia64/include/cpufunc.h9
2 files changed, 9 insertions, 1 deletions
diff --git a/sys/conf/files.ia64 b/sys/conf/files.ia64
index 475d3ba..e440729 100644
--- a/sys/conf/files.ia64
+++ b/sys/conf/files.ia64
@@ -135,7 +135,6 @@ isa/syscons_isa.c optional sc
isa/vga_isa.c optional vga
kern/imgact_elf32.c optional ia32
libkern/bcmp.c standard
-libkern/ffs.c standard
libkern/ia64/__divdi3.S standard
libkern/ia64/__divsi3.S standard
libkern/ia64/__moddi3.S standard
diff --git a/sys/ia64/include/cpufunc.h b/sys/ia64/include/cpufunc.h
index 5de8341..ac7329a 100644
--- a/sys/ia64/include/cpufunc.h
+++ b/sys/ia64/include/cpufunc.h
@@ -45,6 +45,15 @@ breakpoint(void)
__asm __volatile("break 0x80100"); /* XXX use linux value */
}
+
+#define HAVE_INLINE_FFS
+
+static __inline int
+ffs(int mask)
+{
+ return (__builtin_ffs(mask));
+}
+
#endif
extern uint64_t ia64_port_base;
OpenPOWER on IntegriCloud