summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/cpumgr.H
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2012-07-16 21:37:56 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-07-18 14:06:41 -0500
commit6f6561babb56d891e88dbcd07646c23af2563ddd (patch)
tree2a1d669781a0a02870cb2bbbb91b3b81d4aea16b /src/include/kernel/cpumgr.H
parentdd8219097772fe68a6eb66ff20ef4f6ffb4e469f (diff)
downloadtalos-hostboot-6f6561babb56d891e88dbcd07646c23af2563ddd.tar.gz
talos-hostboot-6f6561babb56d891e88dbcd07646c23af2563ddd.zip
cpu_spr_value syscall for SLW image build.
Task 44887 Change-Id: If87b6e80b974bb4cbff13844d8a3f055a17282d2 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1378 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/kernel/cpumgr.H')
-rw-r--r--src/include/kernel/cpumgr.H15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/kernel/cpumgr.H b/src/include/kernel/cpumgr.H
index d7bc2da78..bbd16fcd8 100644
--- a/src/include/kernel/cpumgr.H
+++ b/src/include/kernel/cpumgr.H
@@ -101,6 +101,20 @@ class CpuManager
*/
static void forceMemoryPeriodic();
+ /** Desired value for MSR after wakeup.
+ *
+ * bit 0 - 64 bit mode.
+ * bit 3 - Hypervisor mode.
+ */
+ static const uint64_t WAKEUP_MSR_VALUE = 0x9000000000000000;
+
+ /** Desired value for LPCR after wakeup.
+ *
+ * bit 49 - Wake-up from external interrupt.
+ * bit 51 - Wake-up from machine check.
+ * bit 60, 61 - LPES(0,1) = 1 (see ISA).
+ */
+ static const uint64_t WAKEUP_LPCR_VALUE = 0x000000000000500C;
protected:
CpuManager();
@@ -131,6 +145,7 @@ class CpuManager
static uint64_t cv_shutdown_status;
static InteractiveDebug cv_interactive_debug;
+
};
#endif
OpenPOWER on IntegriCloud