svn commit: r232068 - in stable/9/sys: dev/xen/xenpci i386/conf

Colin Percival cperciva at FreeBSD.org
Thu Feb 23 19:52:33 UTC 2012


Author: cperciva
Date: Thu Feb 23 19:52:33 2012
New Revision: 232068
URL: http://svn.freebsd.org/changeset/base/232068

Log:
  MFC 230183: Make XENHVM work on i386 by fixing the definition of __ffs.

Modified:
  stable/9/sys/dev/xen/xenpci/evtchn.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/amd64/include/xen/   (props changed)
  stable/9/sys/boot/   (props changed)
  stable/9/sys/boot/i386/efi/   (props changed)
  stable/9/sys/boot/ia64/efi/   (props changed)
  stable/9/sys/boot/ia64/ski/   (props changed)
  stable/9/sys/boot/powerpc/boot1.chrp/   (props changed)
  stable/9/sys/boot/powerpc/ofw/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)
  stable/9/sys/conf/   (props changed)
  stable/9/sys/contrib/dev/acpica/   (props changed)
  stable/9/sys/contrib/octeon-sdk/   (props changed)
  stable/9/sys/contrib/pf/   (props changed)
  stable/9/sys/contrib/x86emu/   (props changed)
  stable/9/sys/i386/conf/XENHVM   (props changed)

Modified: stable/9/sys/dev/xen/xenpci/evtchn.c
==============================================================================
--- stable/9/sys/dev/xen/xenpci/evtchn.c	Thu Feb 23 19:49:25 2012	(r232067)
+++ stable/9/sys/dev/xen/xenpci/evtchn.c	Thu Feb 23 19:52:33 2012	(r232068)
@@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$");
 #include <dev/xen/xenpci/xenpcivar.h>
 
 #if defined(__i386__)
-#define	__ffs(word)	ffs(word)
+#define	__ffs(word)	(ffs(word) - 1)
 #elif defined(__amd64__)
 static inline unsigned long __ffs(unsigned long word)
 {


More information about the svn-src-all mailing list