diff options
| author | Doug Gilbert <dgilbert@us.ibm.com> | 2014-01-13 13:36:19 -0600 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-01-13 15:21:41 -0600 |
| commit | cc4693af4d3db870077f2bb5e2b0137dd93bfc25 (patch) | |
| tree | c59ce7de7b880ec5c74246b00215c22f2f970e53 /src/kernel/misc.C | |
| parent | 98de2e19cdfd3e8f2241f65fc0989e8d9a8e6e4c (diff) | |
| download | blackbird-hostboot-cc4693af4d3db870077f2bb5e2b0137dd93bfc25.tar.gz blackbird-hostboot-cc4693af4d3db870077f2bb5e2b0137dd93bfc25.zip | |
Fix HRMOR offset calculation for Tuleta
Change-Id: Idf8be3986fb3ebe0fb5a7914fa4981052b943c3e
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8028
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/kernel/misc.C')
| -rw-r--r-- | src/kernel/misc.C | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kernel/misc.C b/src/kernel/misc.C index bb5574e2f..815c029d1 100644 --- a/src/kernel/misc.C +++ b/src/kernel/misc.C @@ -148,10 +148,11 @@ namespace KernelMisc // Find the start_payload_data_area on the master node uint64_t hrmor_base = KernelIpc::ipc_data_area.hrmor_base; - uint64_t this_node = - getPIR()/KERNEL_MAX_SUPPORTED_CPUS_PER_NODE; + uint64_t this_hb_instance = + l_lowestPIR/KERNEL_MAX_SUPPORTED_CPUS_PER_NODE; - uint64_t hrmor_offset = getHRMOR() - (this_node * hrmor_base); + uint64_t hrmor_offset = + getHRMOR() - (this_hb_instance * hrmor_base); uint64_t dest_hrmor = (g_masterHBInstance * hrmor_base) + hrmor_offset; |

