summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh/include/sh1/irq.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-14 01:08:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-14 01:08:39 +0000
commitc198c0206fa6d459d2c16713be7ef87f4eee627f (patch)
tree4e73e8a017a57b6c089f5e4ae1677f0452a1f2a1 /nuttx/arch/sh/include/sh1/irq.h
parentab6cd2a0ec5b37f095ffe26ca2302ec8bbade103 (diff)
downloadpx4-nuttx-c198c0206fa6d459d2c16713be7ef87f4eee627f.tar.gz
px4-nuttx-c198c0206fa6d459d2c16713be7ef87f4eee627f.tar.bz2
px4-nuttx-c198c0206fa6d459d2c16713be7ef87f4eee627f.zip
Add task register intialization logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1492 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sh/include/sh1/irq.h')
-rw-r--r--nuttx/arch/sh/include/sh1/irq.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/nuttx/arch/sh/include/sh1/irq.h b/nuttx/arch/sh/include/sh1/irq.h
index 16a888d89..26155864a 100644
--- a/nuttx/arch/sh/include/sh1/irq.h
+++ b/nuttx/arch/sh/include/sh1/irq.h
@@ -454,6 +454,30 @@
* Public Types
************************************************************************************/
+/* This struct defines the way the registers are stored. We need to save: */
+
+#ifndef __ASSEMBLY__
+struct xcptcontext
+{
+ /* The following function pointer is non-zero if there are pending signals
+ * to be processed.
+ */
+
+#ifndef CONFIG_DISABLE_SIGNALS
+ void *sigdeliver; /* Actual type is sig_deliver_t */
+
+ /* These are saved copies of LR and SR used during signal processing. */
+
+ uint32 saved_pc;
+ uint32 saved_sr;
+#endif
+
+ /* Register save area */
+
+ uint32 regs[XCPTCONTEXT_REGS];
+};
+#endif
+
/************************************************************************************
* Public Data
************************************************************************************/