From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1291 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 22:40:19 +0200 Message-ID: <20120713204019.GD14463@port70.net> 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> <20120713173410.GJ544@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 1342212034 30948 80.91.229.3 (13 Jul 2012 20:40:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2012 20:40:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1292-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 13 22:40:34 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 1SpmfA-0001q2-Pn for gllmg-musl@plane.gmane.org; Fri, 13 Jul 2012 22:40:32 +0200 Original-Received: (qmail 26244 invoked by uid 550); 13 Jul 2012 20:40:31 -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 26236 invoked from network); 13 Jul 2012 20:40:31 -0000 Content-Disposition: inline In-Reply-To: <20120713173410.GJ544@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1291 Archived-At: * Rich Felker [2012-07-13 13:34:11 -0400]: > 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...? > i don't know, but i guess then mips code would use it as well > 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. there is another place where register saving is implemented (getcontext) and that is asm for mips as well http://sourceware.org/git/?p=glibc.git;a=blob;f=ports/sysdeps/unix/sysv/linux/mips/getcontext.S