[uClibc]Re: setjmp() not working on ppc

Erik Andersen andersen at codepoet.org
Mon Sep 24 20:24:53 UTC 2001


On Mon Sep 24, 2001 at 01:20:35PM -0700, John Tyner wrote:
> I fooled with this some more. It turns out that the mflr instruction
> wasn't causing the problem. (I put it back in.) Attached is a patch for
> setjmp.S and longjmp.S which just removes all of the stfd instructions
> from setjmp.S and all of the lfd instructions from longjmp.S.
> 
> I did some testing with this and setjmp and longjmp both seem to work
> normally with these changes.
> 
> I've got a feeling that these changes are specific to the board we are using
> (PPC405GP) or maybe a larger subset of PowerPC boards, but as I've said
> before I'm still pretty new to all of this stuff, so I could be waaaay off.

I'll give it a try on a power mac I have access to before I commit
anything,

 -Erik

--
Erik B. Andersen   email:  andersee at debian.org, formerly of Lineo
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list