Date: Thu, 23 Feb 2012 19:52:33 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r232068 - in stable/9/sys: dev/xen/xenpci i386/conf Message-ID: <201202231952.q1NJqXwt020681@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202231952.q1NJqXwt020681>