Re: Kernel handling of vector registers
Hi,
you cannot use SIMD registers in kernel as far as i know. The kernel does
not save these registers when changing userspace/kernel mode (i think for
performance reason) so these registers have to stay untouched when you are
in kernel mode.
Regards, Joerg.
On Do, 23.02.2006, 15:42, Torbjorn Granlund sagte:
> I recently committed several GMP assembly functions for powerpc32
> using Altivec registers and instructions.
>
> I also reinstalled my system (a Pegasos2) recently, from an obsolete
> snapshot I got from somebody on the net, to a much less obsolete
> system.
>
> With the new assembly code *and* with the new GNU/Linux installation,
> the system fails intermittently in GMP's make check. I don't know how
> to debug such an intermittent failure.
>
> The same GMP code works correctly on Mac OS X.
>
> Debugging such an intermittent problem is close to impossible.
>
> Do you know if the Linux kernel correctly handles Altivec registers
> during context switch? Does it require setting the VRSAVE special
> register, BTW? (I set it properly, since Mac OS X needs it, and
> setting it shouldn't hurt.)
>
> (The kernel on the system identifies itself as 2.6.12.)
>
> --
> Torbjörn
>
>
> --
> To UNSUBSCRIBE, email to debian-powerpc-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
>
Reply to: