svn commit: r275506 - head/sys/boot/kshim

Hans Petter Selasky hselasky at FreeBSD.org
Fri Dec 5 12:04:48 UTC 2014


Author: hselasky
Date: Fri Dec  5 12:04:47 2014
New Revision: 275506
URL: https://svnweb.freebsd.org/changeset/base/275506

Log:
  Define the ffs() function in the USB bootloader's global and
  independent header file.

Modified:
  head/sys/boot/kshim/bsd_kernel.h

Modified: head/sys/boot/kshim/bsd_kernel.h
==============================================================================
--- head/sys/boot/kshim/bsd_kernel.h	Fri Dec  5 11:58:32 2014	(r275505)
+++ head/sys/boot/kshim/bsd_kernel.h	Fri Dec  5 12:04:47 2014	(r275506)
@@ -109,6 +109,8 @@ SYSINIT_ENTRY(uniq##_entry, "sysuninit",
 #define	cold 0
 #define	BUS_PROBE_GENERIC 0
 #define	CALLOUT_RETURNUNLOCKED 0x1
+#undef ffs
+#define	ffs(x) __builtin_ffs(x)
 #undef va_list
 #define	va_list __builtin_va_list
 #undef va_size


More information about the svn-src-head mailing list