Subject: Re: Powerpc signal handler with floating point registers
To: Matt Thomas <firstname.lastname@example.org>
From: chris zhang <email@example.com>
Date: 02/28/2005 14:26:27
One of my colleagues found another restriction. This
appears to mean you can't do 64bit arithmetic in
signal handler without setting SA_SIGINFO in
Apparently, gcc generates code by using FP when
handling "long long" arithmatics. We couldn't find
compiler flags to turn off this yet.
Something like this,
long long a, b;
a = b;
GCC generates the following code for the above:
So it's trashing f0.
--- Matt Thomas <firstname.lastname@example.org> wrote:
> At 06:02 PM 2/25/2005, you wrote:
> >Just tried -current (NetBSD 2.99.16). Still doesn't
> >seem to work.
> You need use sigaction and specify SA_SIGINFO.
> Only in that case will FP (or AltiVec) registers be
> Matt Thomas email:
> 3am Software Foundry www:
> Cupertino, CA disclaimer: I avow all
> knowledge of this message.
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.