Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120713173410.GJ544@brightrain.aerifal.cx>
Date: Fri, 13 Jul 2012 13:34:11 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: mips port working! & remaining issues

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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.