From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1288 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: mips port working! & remaining issues Date: Fri, 13 Jul 2012 13:34:11 -0400 Message-ID: <20120713173410.GJ544@brightrain.aerifal.cx> References: <20120713052313.GA20369@brightrain.aerifal.cx> <20120713081525.GA14463@port70.net> <20120713130830.GH544@brightrain.aerifal.cx> <50002443.6050003@gentoo.org> <20120713142521.GI544@brightrain.aerifal.cx> <20120713161011.GB14463@port70.net> 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 1342200914 32675 80.91.229.3 (13 Jul 2012 17:35:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2012 17:35:14 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1289-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 13 19:35:14 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 1Spjlp-0006TX-6V for gllmg-musl@plane.gmane.org; Fri, 13 Jul 2012 19:35:13 +0200 Original-Received: (qmail 7578 invoked by uid 550); 13 Jul 2012 17:35:12 -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 7570 invoked from network); 13 Jul 2012 17:35:12 -0000 Content-Disposition: inline In-Reply-To: <20120713161011.GB14463@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1288 Archived-At: On Fri, Jul 13, 2012 at 06:10:12PM +0200, Szabolcs Nagy wrote: > glibc seems to do runtime check for vfp and iwmmxt fpu on arm > > http://sourceware.org/git/?p=glibc.git;a=blob;f=ports/sysdeps/arm/setjmp.S > > and do compile time check on mips > > http://sourceware.org/git/?p=glibc.git;a=blob;f=ports/sysdeps/mips/setjmp_aux.c Thanks for digging up these for reference. I wonder if the auxv contains hw caps on mips too...? On a side note, it's really unbelievable that mips setjmp is written in C on glibc and uclibc (which just copied from glibc). The compiler is completely free to clobber any of the registers that code is attempting to save (as long as the original value gets restored before the return statement) and as such their implementation is completely invalid unless you assume the compiler behaves in a particular way. Rich