aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2016-05-02 15:26:19 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-05-10 16:04:51 +1000
commit4e62374cd3a124b792e3e1befbeaadc0985e4df3 (patch)
tree4ec7272a5dc447c7c1b3ece749d0554435be0eef /include
parent6b50ff75b5194972a00ba662767c65d70c90a938 (diff)
downloadskiboot-4e62374cd3a124b792e3e1befbeaadc0985e4df3.zip
skiboot-4e62374cd3a124b792e3e1befbeaadc0985e4df3.tar.gz
skiboot-4e62374cd3a124b792e3e1befbeaadc0985e4df3.tar.bz2
Disable attn instruction on boot
Currently we don't touch the attn enable bit in HID0 on boot. When attn is enabled, it's available everywhere including HV=0. This is very dangerous for the host kernel. This explicitly disables the attn instruction on all CPUs on boot. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h
index 9eaf59c..587cd52 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -120,6 +120,7 @@ static inline void __nomcount cpu_relax(void)
void pre_init_boot_cpu(void);
void init_boot_cpu(void);
void init_all_cpus(void);
+void init_hid(void);
/* This brings up our secondaries */
extern void cpu_bringup(void);