[PATCH] PPC32 factor context functions into and command and fpu/nofpu parts
Steven Munroe
munroesj@us.ibm.com
Mon Dec 12 03:07:00 GMT 2005
Roland McGrath wrote:
>Wouldn't it be better to avoid duplicating all that assembly code? Can you
>change the main sysdeps/.../powerpc/powerpc32 files to use some #if around
>the FPU parts? If the compiler predefines something, just use that.
>If not, it can test something you define in the nofpu/*.S files with:
>
>#define NO_FPU 1
>#include <sysdeps/.../powerpc32/foobar.S>
>
>
>Thanks,
>Roland
>
>
>
Ok to do as you suggested I had to restructure the mainline a bit. The
Attached patch factors the common function of get/set/swapcontext.S into
get/set/swapcontext-common.S with conditional compilation of FPU and VMX
support. Then new implementations in powerpc32/fpu can #include the
common code as needed to to support the function.
A separate patch will include the powerpc32/nofpu implementation for ports.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc32-context-20051206.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20051212/3080f98c/attachment.txt>
More information about the Libc-alpha
mailing list