summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2012-07-16 21:47:53 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-07-18 14:08:32 -0500
commit49c2bbaf5fb75d534a2f08ef0a4e9fafcf847ebe (patch)
treec4bc27fb09541f3228c90bcb98a326245fd9ae2d
parent6f6561babb56d891e88dbcd07646c23af2563ddd (diff)
downloadblackbird-hostboot-49c2bbaf5fb75d534a2f08ef0a4e9fafcf847ebe.tar.gz
blackbird-hostboot-49c2bbaf5fb75d534a2f08ef0a4e9fafcf847ebe.zip
Stub function for master winkle.
Task 45250 Change-Id: Icb27948fa68a58cf9ec79816c5ac76afc5b74e2a Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1379 Tested-by: Jenkins Server 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>
-rw-r--r--src/include/sys/misc.h12
-rw-r--r--src/lib/syscall_misc.C5
2 files changed, 17 insertions, 0 deletions
diff --git a/src/include/sys/misc.h b/src/include/sys/misc.h
index e1f8e42a7..1ffd8e6a7 100644
--- a/src/include/sys/misc.h
+++ b/src/include/sys/misc.h
@@ -133,6 +133,18 @@ enum CpuSprNames
*/
uint64_t cpu_spr_value(CpuSprNames spr);
+/** @fn cpu_master_winkle
+ * @brief Winkle the master core so runtime SLW image can be applied.
+ *
+ * This requires that the master core is the only one executing instructions.
+ * Will execute the winkle instruction on all running threads and return when
+ * an IPI is receieved on the master thread of the core.
+ *
+ * @retval 0 - Success
+ * @retval -EDEADLK - Cores other than the master are already running.
+ */
+int cpu_master_winkle();
+
#ifdef __cplusplus
}
#endif
diff --git a/src/lib/syscall_misc.C b/src/lib/syscall_misc.C
index af58021a7..7b23ef22b 100644
--- a/src/lib/syscall_misc.C
+++ b/src/lib/syscall_misc.C
@@ -83,3 +83,8 @@ uint64_t cpu_spr_value(CpuSprNames spr)
_syscall1(MISC_CPUSPRVALUE, reinterpret_cast<void*>(spr)));
}
+int cpu_master_winkle()
+{
+ return 0;
+}
+
OpenPOWER on IntegriCloud