diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-15 19:54:58 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-15 19:54:58 +0000 |
commit | 6dff512b922412fa081fe6d13a8428bec32f6d8b (patch) | |
tree | c5d9ba50ce09c36b2b73b45cbf0770f419827311 /nuttx/arch/z80/include/z8 | |
parent | c846d60bdf46b41e80483443857a3f15a6d72df5 (diff) | |
download | px4-nuttx-6dff512b922412fa081fe6d13a8428bec32f6d8b.tar.gz px4-nuttx-6dff512b922412fa081fe6d13a8428bec32f6d8b.tar.bz2 px4-nuttx-6dff512b922412fa081fe6d13a8428bec32f6d8b.zip |
Add lazay interrupt context saving logic for ez8
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@687 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/include/z8')
-rw-r--r-- | nuttx/arch/z80/include/z8/irq.h | 6 | ||||
-rw-r--r-- | nuttx/arch/z80/include/z8/types.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/z80/include/z8/irq.h b/nuttx/arch/z80/include/z8/irq.h index 962ed5662..7e8dbf699 100644 --- a/nuttx/arch/z80/include/z8/irq.h +++ b/nuttx/arch/z80/include/z8/irq.h @@ -235,7 +235,7 @@ #define XCPT_RR8 (4) #define XCPT_RR10 (5) #define XCPT_RR12 (6) -#define XCPT_R1R4 (7) +#define XCPT_RR14 (7) #define XCPT_IRQCTL (8) /* Index 8: IRQCTL register */ #define XCPT_SP (9) /* Index 9: SP[8:15] */ #define XCPT_RPFLAGS (10) /* Index 10: RP (MS) and FLAGS (LS) */ @@ -259,8 +259,8 @@ #define XCPT_R11_OFFS (2*XCPT_RR10+1) #define XCPT_R12_OFFS (2*XCPT_RR12) #define XCPT_R13_OFFS (2*XCPT_RR12+1) -#define XCPT_R14_OFFS (2*XCPT_R1R4) -#define XCPT_R15_OFFS (2*XCPT_R1R4+1) +#define XCPT_R14_OFFS (2*XCPT_RR14) +#define XCPT_R15_OFFS (2*XCPT_RR14+1) #define XCPT_UNUSED_OFFS (2*XCPT_IRQCTL) /* Offset 16: Unused (zero) */ #define XCPT_IRQCTL_OFFS (2*XCPT_IRQCTL+1) /* offset 17: IRQCTL register */ #define XCPT_SPH_OFFS (2*XCPT_SP) /* Offset 18: SP[8:15] */ diff --git a/nuttx/arch/z80/include/z8/types.h b/nuttx/arch/z80/include/z8/types.h index 97cb72d98..5cf8f1341 100644 --- a/nuttx/arch/z80/include/z8/types.h +++ b/nuttx/arch/z80/include/z8/types.h @@ -82,7 +82,7 @@ typedef unsigned long uint32; /* This is the size of the interrupt state save returned by irqsave() */ -typedef uint16 irqstate_t; +typedef ubyte irqstate_t; #endif /* __ASSEMBLY__ */ |