Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 13 Jul 2012 22:40:19 +0200
From: Szabolcs Nagy <>
Subject: Re: mips port working! & remaining issues

* 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
> > 
> >;a=blob;f=ports/sysdeps/arm/setjmp.S
> > 
> > and do compile time check on mips
> > 
> >;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;a=blob;f=ports/sysdeps/unix/sysv/linux/mips/getcontext.S

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.