summaryrefslogtreecommitdiffstats
path: root/src/kernel/misc.C
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2012-08-29 09:47:03 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-09-06 08:29:24 -0500
commit8fc9c877be31195fcd7ca4f9c28c78acf61b0937 (patch)
treea17d854157ea8fe2e7a637a9b5c44704bf79201b /src/kernel/misc.C
parent1c6e1a4cddde411b6219b9e881039ffbda0deb4f (diff)
downloadtalos-hostboot-8fc9c877be31195fcd7ca4f9c28c78acf61b0937.tar.gz
talos-hostboot-8fc9c877be31195fcd7ca4f9c28c78acf61b0937.zip
Allow processors on logical nodes != 0.
Created per-node arrays of CPU objects rather than a single array for the entire system. These are created dynamically as CPUs are enabled. Also disabled support for P7 due to the PIR layout being different and hence would have needed two different sets of assembly code. We have been running exclusively on the P8 Mambo model for a while. RTC: 42815 Change-Id: Ib92de8a7c07c2e700a3b7f0c03c64d484b447ca2 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1630 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/kernel/misc.C')
-rw-r--r--src/kernel/misc.C52
1 files changed, 23 insertions, 29 deletions
diff --git a/src/kernel/misc.C b/src/kernel/misc.C
index a928849fb..3754003d0 100644
--- a/src/kernel/misc.C
+++ b/src/kernel/misc.C
@@ -1,26 +1,25 @@
-/* IBM_PROLOG_BEGIN_TAG
- * This is an automatically generated prolog.
- *
- * $Source: src/kernel/misc.C $
- *
- * IBM CONFIDENTIAL
- *
- * COPYRIGHT International Business Machines Corp. 2011-2012
- *
- * p1
- *
- * Object Code Only (OCO) source materials
- * Licensed Internal Code Source Materials
- * IBM HostBoot Licensed Internal Code
- *
- * The source code for this program is not published or other-
- * wise divested of its trade secrets, irrespective of what has
- * been deposited with the U.S. Copyright Office.
- *
- * Origin: 30
- *
- * IBM_PROLOG_END_TAG
- */
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/kernel/misc.C $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2011,2012 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
#include <kernel/misc.H>
#include <kernel/cpumgr.H>
#include <kernel/cpuid.H>
@@ -53,14 +52,9 @@ namespace KernelMisc
{
case CORE_POWER8_MURANO:
case CORE_POWER8_VENICE:
+ case CORE_UNKNOWN:
scratch_address = 0x40;
break;
-
- case CORE_POWER7:
- case CORE_POWER7_PLUS:
- default:
- scratch_address = 0x20;
- break;
}
asm volatile("mtspr 276, %0\n"
OpenPOWER on IntegriCloud