From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1281 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: mips port working! & remaining issues Date: Fri, 13 Jul 2012 10:15:25 +0200 Message-ID: <20120713081525.GA14463@port70.net> References: <20120713052313.GA20369@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1342167341 8390 80.91.229.3 (13 Jul 2012 08:15:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2012 08:15:41 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1282-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 13 10:15:41 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Spb2J-00072m-Cm for gllmg-musl@plane.gmane.org; Fri, 13 Jul 2012 10:15:39 +0200 Original-Received: (qmail 15790 invoked by uid 550); 13 Jul 2012 08:15:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 15782 invoked from network); 13 Jul 2012 08:15:37 -0000 Content-Disposition: inline In-Reply-To: <20120713052313.GA20369@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1281 Archived-At: * Rich Felker [2012-07-13 01:23:13 -0400]: > Another major omission shared with arm is that setjmp/longjmp cannot > preserve floating point registers. This is because I don't yet know > how to determine at runtime whether hard-float is available, and the > registers can't be saved unless they can be determined to exist. Help > solving this problem would also be appreciated. > then use compile time check: if libc is compiled with -msoft-float then dont save the registers otherwise save them i guess gcc has some predefined macro so you can check soft float at compile time when gcc compiles with hard float for mips there will be a a .gnu.attributes section in the object file which is dumped by readelf as Tag_GNU_MIPS_ABI_FP: Hard float (-mdouble-float) and binutils ld warns when such .o is linked with a soft-float .o so i think we shouldn't worry about applications using hard float while the libc is soft float as for runtime check on mips you may grep for '^ FPU' in /proc/cpuinfo on arm '^Features' tells the fpu variant but i guess these are not very robust http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=blob;f=arch/mips/kernel/proc.c http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=blob;f=arch/arm/kernel/setup.c