[POWERPC] Fix bootwrapper builds with newer gcc versions
authorKumar Gala <galak@kernel.crashing.org>
Thu, 12 Jun 2008 21:19:06 +0000 (07:19 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 16 Jun 2008 05:00:52 +0000 (15:00 +1000)
commit143580ecfb7999147e546cc3814023e233e95fa5
tree5ba519c2be2fb19a5ced64743eba075e1bd61b1d
parent305c73687157d677bee6f2a5dbee438d844a028c
[POWERPC] Fix bootwrapper builds with newer gcc versions

GCC 4.4.x looks to be adding support for generating out-of-line register
saves/restores based on:

http://gcc.gnu.org/ml/gcc-patches/2008-04/msg01678.html

This breaks the bootwrapper as we'd need to link with libgcc to get the
implementation of the register save/restores.

To workaround this issue, we just stole the save/restore code from gcc
and simplified it down for our needs (integer only).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/Makefile
arch/powerpc/boot/crtsavres.S [new file with mode: 0644]