[PATCH] [POWERPC] Fix kernel builds with newer gcc versions and -Os

David Miller davem at davemloft.net
Sat May 3 08:39:21 EST 2008

From: Scott Wood <scottwood at freescale.com>
Date: Fri, 02 May 2008 17:38:21 -0500

> David Miller wrote:
> > The kernel is a special environment.  Therefore even if you start
> > linking with libgcc, it is inevitable that you will need some
> > changed local version for some of those routines in the kernel.
> Such as?

When I added the software multiply and divide implemenations
to the 32-bit sparc port, I ended up using a different software
trap for signalling divide by zero in the handler so that it
was easier to detect the "from kernel" kernel case.

We're not talking about big complicated routines, we're talking about
quite simple stubs whose interfaces really are not going to change.

More information about the Linuxppc-dev mailing list