diff options
-rw-r--r-- | src/include/usr/runtime/runtime.H | 2 | ||||
-rw-r--r-- | src/usr/runtime/populate_hbruntime.C | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/include/usr/runtime/runtime.H b/src/include/usr/runtime/runtime.H index 4613b1d73..3ed9d1fd4 100644 --- a/src/include/usr/runtime/runtime.H +++ b/src/include/usr/runtime/runtime.H @@ -235,6 +235,8 @@ enum SbeUnsecureMemoryRegions { SP_HOST_UNTRUSTED_COMM_AREA_ADDR = 0, SP_HOST_UNTRUSTED_COMM_AREA_SIZE = 64*MEGABYTE, + SP_HOST_UNTRUSTED_OPAL_TRACE_ADDR = 0x31000000, + SP_HOST_UNTRUSTED_OPAL_TRACE_SIZE = 1*MEGABYTE, }; /** diff --git a/src/usr/runtime/populate_hbruntime.C b/src/usr/runtime/populate_hbruntime.C index 687cad196..f2f23b31e 100644 --- a/src/usr/runtime/populate_hbruntime.C +++ b/src/usr/runtime/populate_hbruntime.C @@ -3334,6 +3334,26 @@ errlHndl_t openUntrustedSpCommArea() break; } + + if (TARGETING::is_sapphire_load()) + { + // Open Unsecure Memory Region for OPAL trace + l_err = SBEIO::openUnsecureMemRegion( + SP_HOST_UNTRUSTED_OPAL_TRACE_ADDR, + SP_HOST_UNTRUSTED_OPAL_TRACE_SIZE, + false, //Read-Only + l_procChip); + if(l_err) + { + TRACFCOMP( g_trac_runtime, ERR_MRK "openUntrustedSpCommArea(): openUnsecureMemRegion() for OPAL trace failed proc = 0x%X addr = 0x%016llx size = 0x%X", + l_id, + SP_HOST_UNTRUSTED_OPAL_TRACE_ADDR, + SP_HOST_UNTRUSTED_OPAL_TRACE_SIZE); + + break; + } + } + } if(l_err) { |