Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Dec 2014 12:04:48 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r275506 - head/sys/boot/kshim
Message-ID:  <201412051204.sB5C4mNQ079834@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412051204.sB5C4mNQ079834>