[OpenBIOS] powerpc64 (was: starting)

Andreas Färber andreas.faerber at web.de
Sun Oct 17 11:53:02 CEST 2010

Am 17.10.2010 um 00:57 schrieb Andreas Färber:

> I have 4.2.4 powerpc64-linux-gnu compiled!

Among many other errors I tripped over this:

   CC    target/kernel/primitives.o
cc1: warnings being treated as errors
In file included from ../kernel/primitives.c:25:
../kernel/internal.c:53: warning: cast from pointer to integer of  
different size
../kernel/internal.c:53: error: initializer element is not constant
../kernel/internal.c:53: error: (near initialization for 't[2]')

Corresponding code is:

/* instead of pointing to an explicit 0 variable we
  * point behind the pointer.
static ucell t[] = { DOCOL, 0, (ucell)(t+3), 0 };
static ucell *trampoline = t;

The warning goes away if I cast to (unsigned long) first, but the  
initialization error remains. In powerpc-elf-gcc 4.4+ this didn't  
Suggestions how to fix?


More information about the OpenBIOS mailing list