summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/task.H
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-09-02 23:23:23 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-09-12 10:43:19 -0500
commit2900cb906ec96134dba7c57c23b18e98cec215a7 (patch)
treef14f5a2d502d6a7e2626e50d91164437da5be5cd /src/include/kernel/task.H
parent5365f3466347fbc5a05643df4d3302bf6bb89d94 (diff)
downloadtalos-hostboot-2900cb906ec96134dba7c57c23b18e98cec215a7.tar.gz
talos-hostboot-2900cb906ec96134dba7c57c23b18e98cec215a7.zip
Floating point support.
Change-Id: I859cac1c01bf631d12223702d68813b45339b65f Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/295 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/kernel/task.H')
-rw-r--r--src/include/kernel/task.H14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/kernel/task.H b/src/include/kernel/task.H
index d3dcc000a..cab925977 100644
--- a/src/include/kernel/task.H
+++ b/src/include/kernel/task.H
@@ -44,6 +44,18 @@ struct context_t
uint64_t xer;
};
+/** @struct context_fp_t
+ * @brief Defines the save-restore context for the floating point registers
+ * associated with a task.
+ *
+ * See PowerISA for information on registers listed.
+ */
+struct context_fp_t
+{
+ uint64_t fprs[32];
+ uint64_t fpscr;
+};
+
/** @struct task_t
* @brief The kernel-level task structure.
*/
@@ -54,6 +66,8 @@ struct task_t
/** Context information. This MUST stay here due to
* save-restore asm code. */
context_t context;
+ /** Pointer to optional floating point context. */
+ context_fp_t* fp_context;
/** Task ID */
tid_t tid;
OpenPOWER on IntegriCloud