[Skiboot] [RFC PATCH 0/2] little endian skiboot

Nicholas Piggin npiggin at gmail.com
Wed Sep 25 11:24:52 AEST 2019


On top of all previous patches, this gets you little endian build.

Only real reason not to merge it yet is because the naca patch does
not result in the same data structure so maybe that breaks booting
on FSP or some old systems. I will dig into that a bit more.

After this series, it's checkstopping in xive init, with INT_CQ_
FIR_VC_FATAL_ERROR_0_1, xive must not be completely endian clean
for the hardware spec. It's just going to be a matter of just going
through and adding conversions.

Thanks,
Nick

Nicholas Piggin (2):
  naca: move naca definition from asm to C
  initial little endian support

 Makefile.main                            |  38 ++++++-
 asm/asm-offsets.c                        |   2 -
 asm/cvc_entry.S                          |  39 +++----
 asm/head.S                               | 127 ++++++++++-------------
 core/cpu.c                               |  24 ++++-
 core/init.c                              |   1 +
 hdata/Makefile.inc                       |   2 +-
 hdata/naca.c                             |  20 ++++
 hdata/naca.h                             |  37 +++++++
 hdata/spira.c                            |  13 +--
 hdata/spira.h                            |   2 +
 include/asm-utils.h                      |  17 +++
 include/cpu.h                            |   3 +
 include/elf.h                            |   4 +
 include/mem-map.h                        |   2 +
 libpore/p9_cpu_reg_restore_instruction.H |  23 ++--
 skiboot.lds.S                            |   5 +
 17 files changed, 234 insertions(+), 125 deletions(-)
 create mode 100644 hdata/naca.c
 create mode 100644 hdata/naca.h

-- 
2.23.0



More information about the Skiboot mailing list