diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-12-08 22:23:08 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-12-16 14:50:56 +1100 |
commit | 35776a29f24ec4e3b8cd19cfc87dd05f9c646cdc (patch) | |
tree | 39b7b0b8964478d077b9e0ecf8bacfc039eae99e /include/cpu.h | |
parent | d71bb89816f77551998bfdc60162c91857639c16 (diff) | |
download | skiboot-35776a29f24ec4e3b8cd19cfc87dd05f9c646cdc.zip skiboot-35776a29f24ec4e3b8cd19cfc87dd05f9c646cdc.tar.gz skiboot-35776a29f24ec4e3b8cd19cfc87dd05f9c646cdc.tar.bz2 |
add little endian support
This adds support for building LE skiboot with LITTLE_ENDIAN=1.
This is not complete, notably PHB3, NPU* and *CAPI*, but it is
sufficient to build and boot on mambo and OpenPOWER POWER9 systems.
LE/ELFv2 is a nicer calling convention, and results in smaller image and
less stack usage. It also follows the rest of the Linux/OpenPOWER stack
moving to LE.
The OPALv3 call interface still requires an ugly transition through BE
for compatibility, but that is all handled on the OPAL side.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include/cpu.h')
-rw-r--r-- | include/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h index 7b1c1bc..686310d 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -282,6 +282,9 @@ extern void cpu_process_local_jobs(void); /* Check if there's any job pending */ bool cpu_check_jobs(struct cpu_thread *cpu); +/* Set/clear HILE on all CPUs */ +void cpu_set_hile_mode(bool hile); + /* OPAL sreset vector in place at 0x100 */ void cpu_set_sreset_enable(bool sreset_enabled); |