diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-05-08 10:12:19 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-05-08 10:12:19 +0000 |
commit | 83bbc0a6c61cabde630dfb08d69e4d6a29657dd2 (patch) | |
tree | ad26357e5eddcf25bc13ec486983f4c94c56e4bb /ports/MSP430/chcore.h | |
parent | 3f9aac327ba999d67f9501ebf590d171e496b448 (diff) | |
download | ChibiOS-83bbc0a6c61cabde630dfb08d69e4d6a29657dd2.tar.gz ChibiOS-83bbc0a6c61cabde630dfb08d69e4d6a29657dd2.tar.bz2 ChibiOS-83bbc0a6c61cabde630dfb08d69e4d6a29657dd2.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@285 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports/MSP430/chcore.h')
-rw-r--r-- | ports/MSP430/chcore.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/MSP430/chcore.h b/ports/MSP430/chcore.h index b6991baa2..3a9d587b8 100644 --- a/ports/MSP430/chcore.h +++ b/ports/MSP430/chcore.h @@ -20,6 +20,9 @@ #ifndef _CHCORE_H_
#define _CHCORE_H_
+#include <iomacros.h>
+#include <msp430/common.h>
+
#define CH_ARCHITECTURE_MSP430
typedef void *regmsp;
@@ -48,6 +51,7 @@ struct intctx { regmsp r9;
regmsp r10;
regmsp r11;
+ regmsp sr;
regmsp pc;
};
@@ -61,6 +65,7 @@ typedef struct { sizeof(struct intctx)); \
tp->p_ctx.sp->r10 = pf; \
tp->p_ctx.sp->r11 = arg; \
+ tp->p_ctx.sp->sr = (regmsp)GIE; \
tp->p_ctx.sp->pc = threadstart; \
}
|