diff options
author | spashabk-in <shakeebbk@in.ibm.com> | 2018-01-24 02:40:02 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2018-02-02 22:59:58 -0500 |
commit | 7be7840a672ab35234738a6287c95d312a5b3bc9 (patch) | |
tree | aa28205fd8cc6e4f56b7973b25cb445b2cfe8580 /src/sbefw/core/sbeutil.H | |
parent | 035b8ccbe617bd2fa82498c185ea83eb62f02404 (diff) | |
download | talos-sbe-7be7840a672ab35234738a6287c95d312a5b3bc9.tar.gz talos-sbe-7be7840a672ab35234738a6287c95d312a5b3bc9.zip |
Store SBE failed rc for async FFDC
Store the SBE rc for failed command in globals
Change-Id: I673ee6929fc1941233d5235d18412a747e596508
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52511
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/sbefw/core/sbeutil.H')
-rw-r--r-- | src/sbefw/core/sbeutil.H | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sbefw/core/sbeutil.H b/src/sbefw/core/sbeutil.H index 75ea07b5..9528eabd 100644 --- a/src/sbefw/core/sbeutil.H +++ b/src/sbefw/core/sbeutil.H @@ -5,7 +5,8 @@ /* */ /* OpenPOWER sbe Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2017 */ +/* Contributors Listed Below - COPYRIGHT 2015,2018 */ +/* [+] International Business Machines Corp. */ /* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ @@ -45,11 +46,11 @@ if ((l_rc) != SBE_SEC_OPERATION_SUCCESSFUL) \ break; \ } -#define CHECK_SBE_SECURITY_RC_AND_BREAK_IF_NOT_SUCCESS(addr, op, prim, sec) \ +#define CHECK_SBE_SECURITY_RC_AND_BREAK_IF_NOT_SUCCESS(addr, op, resp) \ if (!SBE_SECURITY::isAllowed(addr, op)) \ { \ - prim = SBE_PRI_UNSECURE_ACCESS_DENIED; \ - sec = SBE_SEC_BLACKLISTED_REG_ACCESS; \ + resp->setStatus(SBE_PRI_UNSECURE_ACCESS_DENIED, \ + SBE_SEC_BLACKLISTED_REG_ACCESS); \ /* TODO via RTC 180983:Enable this once the BL/WL registers are settled */ \ /*break;*/ \ } |