diff options
Diffstat (limited to 'nuttx/arch/arm/include/types.h')
-rw-r--r-- | nuttx/arch/arm/include/types.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nuttx/arch/arm/include/types.h b/nuttx/arch/arm/include/types.h index f72e6de8c..964ce8960 100644 --- a/nuttx/arch/arm/include/types.h +++ b/nuttx/arch/arm/include/types.h @@ -67,11 +67,16 @@ typedef unsigned int uint32; typedef long long sint64; typedef unsigned long long uint64; -/* This is the size of the interrupt state save returned by - * irqsave() +/* This is the size of the interrupt state save returned by irqsave(). For + * ARM, a 32 register value is returned, for the thumb2, Cortex-M3, the 16-bit + * primask register value is returned, */ +#ifdef __thumb2__ +typedef unsigned short irqstate_t; +#else /* __thumb2__ */ typedef unsigned int irqstate_t; +#endif /* __thumb2__ */ #endif /* __ASSEMBLY__ */ |