mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Progress toward clean SDCC compilation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@18 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user