summaryrefslogtreecommitdiffstats
path: root/src/usr/runtime
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2014-06-23 19:35:02 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-06-24 13:53:12 -0500
commit82343f7897f79abc0e9780b7b1a3388728d6562d (patch)
tree5b388d08b13dbaa58fdc7cf82c328bbde52f9d19 /src/usr/runtime
parentaaadc0e5955551542ddc5fc84cc54dd32f8d9788 (diff)
downloadtalos-hostboot-82343f7897f79abc0e9780b7b1a3388728d6562d.tar.gz
talos-hostboot-82343f7897f79abc0e9780b7b1a3388728d6562d.zip
Set payload base address correctly on slave nodes
Change-Id: I6cc9f135a5f79b524db673f0f4563466b1d52202 CQ: SW266592 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11764 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/runtime')
-rw-r--r--src/usr/runtime/populate_attributes.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/runtime/populate_attributes.C b/src/usr/runtime/populate_attributes.C
index b1aa2c635..e6e9ff03b 100644
--- a/src/usr/runtime/populate_attributes.C
+++ b/src/usr/runtime/populate_attributes.C
@@ -760,6 +760,7 @@ errlHndl_t populate_attributes( void )
uint64_t this_node = INTR::PIR_t(task_getcpuid()).nodeId;
task_affinity_unpin();
+ uint64_t payloadBase = sys->getAttr<TARGETING::ATTR_PAYLOAD_BASE>();
//loop though all possible drawers whether they exist or not
// An invalid or non-existant logical node number in that drawer
@@ -785,6 +786,7 @@ errlHndl_t populate_attributes( void )
msg->type = IPC::IPC_POPULATE_ATTRIBUTES;
msg->data[0] = drawer; // offset in attribute table
msg->data[1] = this_node; // node to send a msg back to
+ msg->extra_data = reinterpret_cast<uint64_t*>(payloadBase);
errhdl = MBOX::send(MBOX::HB_IPC_MSGQ, msg, node);
if (errhdl)
{
@@ -817,4 +819,11 @@ errlHndl_t populate_attributes( void )
return errhdl;
}
+void setPayloadBaseAddress(uint64_t i_payloadAddress)
+{
+ TARGETING::Target * sys = NULL;
+ TARGETING::targetService().getTopLevelTarget( sys );
+ sys->setAttr<TARGETING::ATTR_PAYLOAD_BASE>(i_payloadAddress);
+}
+
} //namespace RUNTIME
OpenPOWER on IntegriCloud