V4L2: __ucmpdi2 undefined on ppc

Scott Wood scottwood at freescale.com
Wed Mar 5 03:58:17 EST 2008


On Tue, Mar 04, 2008 at 04:37:28PM +0000, David Woodhouse wrote:
> 
> On Sun, 2008-03-02 at 22:53 +0100, Segher Boessenkool wrote:
> > Every occurrence of r7 here is wrong (and some of the r6).
> 
> Can you elucidate?

They were being used as condition registers rather than GPRs.

> >   Is there any reason to do this in assembler code at all?
> 
> Is there any particular reason not to?

Same reason most of the rest of the kernel is in C rather than assembly.

Of course, a better question is why we don't just link libgcc...

-Scott



More information about the Linuxppc-dev mailing list