diff options
Diffstat (limited to 'nuttx/arch/sim/include')
-rw-r--r-- | nuttx/arch/sim/include/irq.h | 6 | ||||
-rw-r--r-- | nuttx/arch/sim/include/types.h | 12 |
2 files changed, 16 insertions, 2 deletions
diff --git a/nuttx/arch/sim/include/irq.h b/nuttx/arch/sim/include/irq.h index 3ae46aa42..f866da50d 100644 --- a/nuttx/arch/sim/include/irq.h +++ b/nuttx/arch/sim/include/irq.h @@ -44,6 +44,8 @@ * Included Files ************************************************************/ +#include <sys/types.h> + /************************************************************ * Definitions ************************************************************/ @@ -72,12 +74,12 @@ struct xcptcontext ************************************************************/ #ifndef __ASSEMBLY__ -static inline uint32 irqsave(void) +static inline irqstate_t irqsave(void) { return 0; } -static inline void irqrestore(uint32 flags) +static inline void irqrestore(irqstate_t flags) { } #endif diff --git a/nuttx/arch/sim/include/types.h b/nuttx/arch/sim/include/types.h index 39232af7d..1c7636886 100644 --- a/nuttx/arch/sim/include/types.h +++ b/nuttx/arch/sim/include/types.h @@ -52,6 +52,10 @@ * Type Declarations ************************************************************/ +#ifndef __ASSEMBLY__ + +/* These are the sizes of the standard GNU types */ + typedef char sbyte; typedef unsigned char ubyte; typedef unsigned char uint8; @@ -63,6 +67,14 @@ 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() + */ + +typedef unsigned int irqstate_t; + +#endif /* __ASSEMBLY__ */ + /************************************************************ * Global Function Prototypes ************************************************************/ |