Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhSlx-0003vz-Kd for qemu-devel@nongnu.org; Tue, 16 Feb 2010 14:07:49 -0500 Received: from [199.232.76.173] (port=35282 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhSlw-0003uh-Pn for qemu-devel@nongnu.org; Tue, 16 Feb 2010 14:07:48 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhSlt-0001r9-RJ for qemu-devel@nongnu.org; Tue, 16 Feb 2010 14:07:48 -0500 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:60294 helo=akado.ru) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NhSlt-0001qv-7H for qemu-devel@nongnu.org; Tue, 16 Feb 2010 14:07:45 -0500 Date: Tue, 16 Feb 2010 22:07:25 +0300 (MSK) From: malc Subject: Re: [Qemu-devel] [PATCH 1/3] Add FreeBSD/ppc host ppc_init_cacheline_sizes() implementation. In-Reply-To: <20100216175624.GA75327@triton8.kn-bremen.de> Message-ID: References: <20100214201056.GA97858@triton8.kn-bremen.de> <20100214201209.GA97896@triton8.kn-bremen.de> <20100215224004.GA29604@triton8.kn-bremen.de> <20100216175624.GA75327@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juergen Lock Cc: qemu-devel@nongnu.org On Tue, 16 Feb 2010, Juergen Lock wrote: > On Tue, Feb 16, 2010 at 09:52:50AM +0300, malc wrote: > > On Mon, 15 Feb 2010, Juergen Lock wrote: > > > > > On Mon, Feb 15, 2010 at 06:16:07AM +0300, malc wrote: > > > > On Sun, 14 Feb 2010, Juergen Lock wrote: > > > > > > > > > Submitted by: Andreas Tobler > > > > > > > > > > Signed-off-by: Juergen Lock > > > > > > > > > > --- a/cache-utils.c > > > > > +++ b/cache-utils.c > > > > > @@ -57,6 +57,23 @@ > > > > > } > > > > > #endif > > > > > > > > > > +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) > > > > > > > > __FreeBSD_kernel__ is for something like Debian/kFreeBSD? > > > > > > Yep, it is. Support for it was added to qemu some time ago so I > > > figured I should do the same. > > > > > > > Perhaps it would be better to avoid this particular ifdefery and > > just go with _CALL_SYSV, can you verify that: > > > > ~$ gcc -E -dM -x c /dev/null | grep SYSV > > > > yields > > > > #define _CALL_SYSV 1 > > > > on FreeBSD and Debian/kFreeBSD? > > Nope, not found on FreeBSD. (Also I would kinda doubt that sysctl is > standardized?) _CALL_SYSV means that calling convention is SysV one, nothing to do with sysctl, and i wanted you/patch author to run it on FreeBSD/PPC... -- mailto:av1474@comtv.ru