diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-28 23:45:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-28 23:45:56 +0000 |
commit | 129dd27cc4deb042d2f88c65927adc49c338756d (patch) | |
tree | 265b6617c9f2281815f2c2120a571fb98ce7c883 /nuttx/include/nuttx/compiler.h | |
parent | cbade4e74a17aa881e8031b6785657d7166dd819 (diff) | |
download | nuttx-129dd27cc4deb042d2f88c65927adc49c338756d.tar.gz nuttx-129dd27cc4deb042d2f88c65927adc49c338756d.tar.bz2 nuttx-129dd27cc4deb042d2f88c65927adc49c338756d.zip |
Still working toward clean 8051 link
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@25 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/compiler.h')
-rw-r--r-- | nuttx/include/nuttx/compiler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h index f15902171..1ba651503 100644 --- a/nuttx/include/nuttx/compiler.h +++ b/nuttx/include/nuttx/compiler.h @@ -73,6 +73,7 @@ # define FAR # define NEAR +# define DSEG /* Select the large, 32-bit addressing model */ @@ -127,6 +128,12 @@ #define FAR __xdata #define NEAR __data +#if defined(SDCC_MODEL_SMALL) +# define DSEG __data +#else +# define DSEG __xdata +#endif + /* Select small, 16-bit address model */ # define CONFIG_SMALL_MEMORY 1 @@ -159,6 +166,7 @@ # define FAR # define NEAR +# define DSEG # undef CONFIG_SMALL_MEMORY # undef CONFIG_HAVE_INLINE |