From 7adcd16c12adc7b28c32bd9837ce0ab0438796ca Mon Sep 17 00:00:00 2001 From: Brian Bakke Date: Tue, 31 Oct 2017 15:31:49 -0500 Subject: Story 180760 - Use self restore API to disable ATTN in HID ... during istep 15/16 of HCODE build/execution Change-Id: I63f54cdc35b3ff7e68120a07c142b6a557257854 RTC: 180760 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49070 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: Christian R. Geddes Reviewed-by: Matt Derksen Reviewed-by: William G. Hoffa --- src/include/arch/ppc.H | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/include/arch/ppc.H') diff --git a/src/include/arch/ppc.H b/src/include/arch/ppc.H index 2e338ce36..a4c3afbed 100644 --- a/src/include/arch/ppc.H +++ b/src/include/arch/ppc.H @@ -355,6 +355,14 @@ inline uint64_t getPSSCR() return psscr; } +ALWAYS_INLINE +inline uint64_t getHID() +{ + register uint64_t hid = 0; + asm volatile("mfspr %0, 1008" : "=r" (hid)); + return hid; +} + ALWAYS_INLINE inline size_t getCacheLineBytes() { -- cgit v1.2.1