summaryrefslogtreecommitdiffstats
path: root/src/include/arch/ppc.H
diff options
context:
space:
mode:
authorBrian Bakke <bbakke@us.ibm.com>2017-11-17 10:51:24 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-11-30 09:33:28 -0500
commit3a88f18bc7386abaaceedca9b327806d85734f67 (patch)
treec4351bac24ee26d90c977a0bd1d766217f8817e2 /src/include/arch/ppc.H
parentc5c12e6e0ae9160e15f7ff07d123cb9033103947 (diff)
downloadtalos-hostboot-3a88f18bc7386abaaceedca9b327806d85734f67.tar.gz
talos-hostboot-3a88f18bc7386abaaceedca9b327806d85734f67.zip
Enable ATTN prior to OPAL handoff
Change-Id: Iadfded90c09b149948348ee462ab34f9c2431982 RTC: 182134 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49865 Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/arch/ppc.H')
-rw-r--r--src/include/arch/ppc.H7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/arch/ppc.H b/src/include/arch/ppc.H
index a4c3afbed..36b514f04 100644
--- a/src/include/arch/ppc.H
+++ b/src/include/arch/ppc.H
@@ -364,6 +364,13 @@ inline uint64_t getHID()
}
ALWAYS_INLINE
+inline void setHID(uint64_t _hid)
+{
+ register uint64_t hid = _hid;
+ asm volatile("mtspr 1008, %0; isync" :: "r" (hid));
+}
+
+ALWAYS_INLINE
inline size_t getCacheLineBytes()
{
return 128;
OpenPOWER on IntegriCloud