[OpenBIOS] [PATCH 0/5] Build openbios on powerpc64 host

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun Oct 25 12:34:21 CET 2015


On 24/10/15 10:16, Laurent Vivier wrote:

> This series of patches allows to build openbios on a
> powerpc64 host. It has been tested with following targets:
> ppc, sparc32, sparc64.
> 
> A preliminary patch is needed for fcode-utils, as "toke" is
> broken on big endan architecture:
> 
> diff -ru fcode-utils/toke/scanner.c fcode-utils-new/toke/scanner.c
> --- fcode-utils/toke/scanner.c  2006-10-30 09:48:28.000000000 +0100
> +++ fcode-utils-new/toke/scanner.c      2015-10-19 00:21:43.417373690 +0200
> @@ -1625,7 +1625,7 @@
>  
>  void user_message( tic_param_t pfield )
>  {
> -    char delim = (char)pfield.deflt_elem ;
> +    char delim = (char)pfield.fw_token ;
>      handle_user_message( delim, TRUE);
>  }
>  
> @@ -5295,7 +5295,7 @@
>  
>  void process_remark( tic_param_t pfield )
>  {
> -    char until_char = (char)pfield.deflt_elem ;
> +    char until_char = (char)pfield.fw_token ;
>      unsigned int start_lineno = lineno;
>  
>  #ifdef DEBUG_SCANNER
> 
> 
> Laurent Vivier (5):
>   switch-arch: factorize code to compute architecture properties.
>   switch-arch: compute base arch and allow     native compiler for 32bit
>     and 64bit.
>   On ppc64, asm/sigcontext.h includes asm/elf.h
>   On ppc64 host, elf_vrreg_t is defined as __vector128
>   switch-arch: as for powerpc64, select sparc64 compiler to compile
>     sparc32
> 
>  config/scripts/switch-arch   | 85 ++++++++++++++++++++++++--------------------
>  include/arch/ppc/elf.h       |  4 +++
>  include/arch/ppc/types.h     |  5 +++
>  include/arch/sparc32/elf.h   |  4 +++
>  include/arch/sparc32/types.h | 13 +++++++
>  include/arch/sparc64/elf.h   |  4 +++
>  include/arch/sparc64/types.h | 13 +++++++
>  7 files changed, 90 insertions(+), 38 deletions(-)

Hi Laurent,

Thank you so much for this - we noticed this was broken when testing
native PPC during GSoC. I'll take a look further over the next few days.


ATB,

Mark.




More information about the OpenBIOS mailing list