From 3a88f18bc7386abaaceedca9b327806d85734f67 Mon Sep 17 00:00:00 2001 From: Brian Bakke Date: Fri, 17 Nov 2017 10:51:24 -0600 Subject: Enable ATTN prior to OPAL handoff Change-Id: Iadfded90c09b149948348ee462ab34f9c2431982 RTC: 182134 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49865 Reviewed-by: Matt Derksen Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/include/arch/ppc.H | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include/arch/ppc.H') 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 @@ -363,6 +363,13 @@ inline uint64_t getHID() return hid; } +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() { -- cgit v1.2.1