From 90eaed6f430c88eb0127ce47671bd80b21f35433 Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Sun, 1 Oct 2017 16:09:56 -0500 Subject: Force checkstops for unhandled machine checks Default MSR[ME]=0 during initial boot for bootloader and hostboot kernel Once the xscom address range has been mapped in, enable the machine check handler to force a checkstop and set MSR[ME]=1 to allow regular machine check handling CQ: SW401402 Change-Id: I104e39465e61b3b19d5c073e71271102711ae54f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/47179 Reviewed-by: Christian R. Geddes Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: William G. Hoffa Reviewed-by: Daniel M. Crowell --- src/lib/syscall_misc.C | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/syscall_misc.C b/src/lib/syscall_misc.C index dff702ddd..a2b4ab1e4 100644 --- a/src/lib/syscall_misc.C +++ b/src/lib/syscall_misc.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2017 */ +/* Contributors Listed Below - COPYRIGHT 2011,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -137,3 +137,11 @@ void cpu_crit_assert(uint64_t i_failAddr) { _syscall1(MISC_CRITASSERT, reinterpret_cast(i_failAddr)); } + + +void set_mchk_data(uint64_t i_xstopAddr, uint64_t i_xstopData) +{ + _syscall2(MISC_SETMCHKDATA, + reinterpret_cast(i_xstopAddr), + reinterpret_cast(i_xstopData)); +} -- cgit v1.2.1