summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/attrrp.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/targeting/attrrp.C')
-rwxr-xr-xsrc/usr/targeting/attrrp.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/usr/targeting/attrrp.C b/src/usr/targeting/attrrp.C
index 28ffe8133..da1efdb15 100755
--- a/src/usr/targeting/attrrp.C
+++ b/src/usr/targeting/attrrp.C
@@ -442,6 +442,17 @@ namespace TARGETING
iv_sections[i].pnorAddress =
l_pnorSectionInfo.vaddr + l_section->sectionOffset;
+ #ifdef CONFIG_SECUREBOOT
+ // RW targeting section is part of the unprotected payload
+ // so use the normal PNOR virtual address space
+ if( l_pnorSectionInfo.secure
+ && iv_sections[i].type == SECTION_TYPE_PNOR_RW)
+ {
+ iv_sections[i].pnorAddress -=
+ (VMM_VADDR_SPNOR_DELTA + VMM_VADDR_SPNOR_DELTA);
+ }
+ #endif
+
if(iv_isMpipl)
{
//For MPIPL we are reading from real memory,
OpenPOWER on IntegriCloud