aboutsummaryrefslogtreecommitdiff
path: root/include/cpu.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-12-08 22:23:08 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-12-16 14:50:56 +1100
commit35776a29f24ec4e3b8cd19cfc87dd05f9c646cdc (patch)
tree39b7b0b8964478d077b9e0ecf8bacfc039eae99e /include/cpu.h
parentd71bb89816f77551998bfdc60162c91857639c16 (diff)
downloadskiboot-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.h3
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);