From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: mips port working! & remaining issues
Date: Fri, 13 Jul 2012 22:40:19 +0200 [thread overview]
Message-ID: <20120713204019.GD14463@port70.net> (raw)
In-Reply-To: <20120713173410.GJ544@brightrain.aerifal.cx>
* Rich Felker <dalias@aerifal.cx> [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
next prev parent reply other threads:[~2012-07-13 20:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-13 5:23 Rich Felker
2012-07-13 8:15 ` Szabolcs Nagy
2012-07-13 8:18 ` Justin Cormack
2012-07-13 13:08 ` Rich Felker
2012-07-13 13:36 ` Luca Barbato
2012-07-13 14:25 ` Rich Felker
2012-07-13 16:10 ` Szabolcs Nagy
2012-07-13 17:34 ` Rich Felker
2012-07-13 20:40 ` Szabolcs Nagy [this message]
2012-07-13 20:58 ` idunham
2012-07-13 22:18 ` Rich Felker
2012-07-13 15:15 ` Gregor Richards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120713204019.GD14463@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).