From owner-freebsd-arm@freebsd.org Thu Oct 1 09:25:24 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14C47A0B7D2 for ; Thu, 1 Oct 2015 09:25:24 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from kif.fubar.geek.nz (kif.fubar.geek.nz [178.62.119.249]) by mx1.freebsd.org (Postfix) with ESMTP id D9DFE1BCA for ; Thu, 1 Oct 2015 09:25:23 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from bender (unknown [193.12.234.196]) by kif.fubar.geek.nz (Postfix) with ESMTPSA id EFBB8D7A21; Thu, 1 Oct 2015 09:18:26 +0000 (UTC) Date: Thu, 1 Oct 2015 10:18:25 +0100 From: Andrew Turner To: Stefan Parvu Cc: "freebsd-arm@freebsd.org" Subject: Re: compile kernel with hard float support Message-ID: <20151001101825.44341b74@bender> In-Reply-To: <560CF28F.4000908@kronometrix.org> References: <560CF28F.4000908@kronometrix.org> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2015 09:25:24 -0000 On Thu, 1 Oct 2015 11:45:03 +0300 Stefan Parvu wrote: > > I understood, by default, the image > FreeBSD-armv6-11.0-RPI2-286947.img.gz has soft float support. All > float-point operations are done in software not using the ARM hardware > VFP. Correct ? No, armv6 is built with softfp. This means the compiler is free to use the VFP, but when passing floating-point data between functions it needs to copy this to the general-purpose registers. Even without this the helper functions detect the presence of the VFP unit and make use of this when available. > > If I want to build FreeBSD 11 with hard float support can I do this > already ? Do we support hard float ? And how should I compile things ? > > # setenv ARCH armv6hf (is this correct ?) > # make buildkernel KERNCONF=RPI2 The kernel doesn't use any floating-point hardware, other than to enable and disable it in the VFP driver. As such it doesn't matter if you've built the kernel for hard-float or not, it will make no difference to the code generated. Andrew