[OpenBIOS] [RFC 3/3] ppc: RTAS WIP

Blue Swirl blauwirbel at gmail.com
Sat Oct 16 18:33:33 CEST 2010

On Sat, Oct 16, 2010 at 9:26 AM, Andreas Färber <andreas.faerber at web.de> wrote:
> Am 16.10.2010 um 10:50 schrieb Alexander Graf:
>> On 15.10.2010, at 22:56, Andreas Färber wrote:
>>> Am 15.10.2010 um 22:28 schrieb Alexander Graf:
>>>> On 15.10.2010, at 22:22, Andreas Färber wrote:
>>>>> 7-11. RTAS must preserve the following user mode registers: R1-R2,
>>>>> R13-R31, and CR.
>>>> Except for CR, C is the same. So you really only need to save/restore cr
>>>> :).
>>> Huh? Doesn't that depend on the ABI used rather than on C? If someone
>>> uses a differently configured GCC (or clang or ...), such assumptions might
>>> not hold.
>> I thought we're using the Linux ABI internally?
> All I can say for sure is that I'm using --target=powerpc-elf-, which
> together with powerpc-linux-gnu- and powerpc-eabi- is one of the
> cross-compilers switch-arch allows for qemu-ppc.
> --target=powerpc[64]-linux[-gnu] GCCs 4.4-4.6 don't build for Blue and me,
> cf. thread "starting". Any hints welcome!

I didn't try powerpc-linux (since powerpc-elf-gcc works) but
powerpc64-linux (which was the one that didn't build along with
$ powerpc-elf-gcc -v
Using built-in specs.
Target: powerpc-elf
Configured with: ../configure --target=powerpc-elf
--enable-targets=powerpc-elf --disable-nls --disable-threads
--enable-languages=c --disable-shared --disable-libssp
Thread model: single
gcc version 4.6.0 20100925 (experimental) (GCC)

More information about the OpenBIOS mailing list