Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhRfo-000713-KN for qemu-devel@nongnu.org; Tue, 16 Feb 2010 12:57:24 -0500 Received: from [199.232.76.173] (port=56242 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhRfn-0006zw-RD for qemu-devel@nongnu.org; Tue, 16 Feb 2010 12:57:23 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhRfm-0005fn-CV for qemu-devel@nongnu.org; Tue, 16 Feb 2010 12:57:23 -0500 Received: from gelbbaer.kn-bremen.de ([78.46.108.116]:55270 helo=smtp.kn-bremen.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NhRfm-0005fb-1b for qemu-devel@nongnu.org; Tue, 16 Feb 2010 12:57:22 -0500 From: Juergen Lock Date: Tue, 16 Feb 2010 18:56:24 +0100 Subject: Re: [Qemu-devel] [PATCH 1/3] Add FreeBSD/ppc host ppc_init_cacheline_sizes() implementation. Message-ID: <20100216175624.GA75327@triton8.kn-bremen.de> References: <20100214201056.GA97858@triton8.kn-bremen.de> <20100214201209.GA97896@triton8.kn-bremen.de> <20100215224004.GA29604@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: Juergen Lock , qemu-devel@nongnu.org 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?) Cheers, Juergen