summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2014-12-05 12:04:47 +0000
committerhselasky <hselasky@FreeBSD.org>2014-12-05 12:04:47 +0000
commiteccb719b3b554b8e509710a7e6459161829a3d1d (patch)
tree5cc356fa5acfba9b3bda4c385c845d62f96208b7 /sys/boot
parentf68d5de62f4e8609789103416ae21048723ccd8b (diff)
downloadFreeBSD-src-eccb719b3b554b8e509710a7e6459161829a3d1d.zip
FreeBSD-src-eccb719b3b554b8e509710a7e6459161829a3d1d.tar.gz
Define the ffs() function in the USB bootloader's global and
independent header file.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/kshim/bsd_kernel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/kshim/bsd_kernel.h b/sys/boot/kshim/bsd_kernel.h
index 975211e..0e40fb0 100644
--- a/sys/boot/kshim/bsd_kernel.h
+++ b/sys/boot/kshim/bsd_kernel.h
@@ -109,6 +109,8 @@ SYSINIT_ENTRY(uniq##_entry, "sysuninit", (subs), \
#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
OpenPOWER on IntegriCloud