From c198c0206fa6d459d2c16713be7ef87f4eee627f Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 14 Feb 2009 01:08:39 +0000 Subject: Add task register intialization logic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1492 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/sh/include/sh1/irq.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'nuttx/arch/sh/include/sh1/irq.h') 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 ************************************************************************************/ -- cgit v1.2.3