diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-28 01:44:34 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-28 01:44:34 +0000 |
commit | c52a6d1e1d227b3acc746f0f435214f663a5b3a8 (patch) | |
tree | 0030118c86fcf205aac85bbe39a007b6f7d7416b /nuttx/include | |
parent | a40203ddd0aa3e83c401aacbd2b3498651ee4129 (diff) | |
download | px4-nuttx-c52a6d1e1d227b3acc746f0f435214f663a5b3a8.tar.gz px4-nuttx-c52a6d1e1d227b3acc746f0f435214f663a5b3a8.tar.bz2 px4-nuttx-c52a6d1e1d227b3acc746f0f435214f663a5b3a8.zip |
Changes for SDCC compiler
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@453 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/compiler.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h index 8874af794..945d6c25c 100644 --- a/nuttx/include/nuttx/compiler.h +++ b/nuttx/include/nuttx/compiler.h @@ -148,14 +148,20 @@ * external RAM. */ -#define FAR __xdata -#define NEAR __data -#define CODE __code - -#if defined(SDCC_MODEL_SMALL) -# define DSEG __data +#if defined(__z80) || defined(__gbz80) +# define FAR +# define NEAR +# define CODE +# define DSEG #else -# define DSEG __xdata +# define FAR __xdata +# define NEAR __data +# define CODE __code +# if defined(SDCC_MODEL_SMALL) +# define DSEG __data +# else +# define DSEG __xdata +# endif #endif /* Select small, 16-bit address model */ @@ -169,8 +175,8 @@ /* The generic pointer and int are not the same size * (for some SDCC architectures) */ - -#if !defined(__z80) && defined(__gbz80) + +#if !defined(__z80) && !defined(__gbz80) # define CONFIG_PTR_IS_NOT_INT 1 #endif |