diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-08-28 17:17:24 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-08-28 17:17:24 +0000 |
commit | c1f828e56ecff44e0a9a00dd7ffd0fb70102d705 (patch) | |
tree | 6067e79b8d5608fecac39e1a0633829e37e97c7e /newlib/libc/sys/rtems/machine/param.h | |
parent | 1cc0c5d6f9bf27b40f75d26887a6698049bf884d (diff) | |
download | cygnal-c1f828e56ecff44e0a9a00dd7ffd0fb70102d705.tar.gz cygnal-c1f828e56ecff44e0a9a00dd7ffd0fb70102d705.tar.bz2 cygnal-c1f828e56ecff44e0a9a00dd7ffd0fb70102d705.zip |
2006-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>
* libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
This is needed to build all AVR and H8300 RTEMS multilib variants.
Diffstat (limited to 'newlib/libc/sys/rtems/machine/param.h')
-rw-r--r-- | newlib/libc/sys/rtems/machine/param.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/machine/param.h b/newlib/libc/sys/rtems/machine/param.h index 4168f1f6c..fd244431d 100644 --- a/newlib/libc/sys/rtems/machine/param.h +++ b/newlib/libc/sys/rtems/machine/param.h @@ -34,8 +34,13 @@ #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ #define DEV_BSIZE (1<<DEV_BSHIFT) +#if defined(__AVR__) || defined(__h8300__) +#define BLKDEV_IOSIZE 1024 +#define MAXPHYS (1 * 1024) /* max raw I/O transfer size */ +#else #define BLKDEV_IOSIZE 2048 #define MAXPHYS (64 * 1024) /* max raw I/O transfer size */ +#endif #define UPAGES 2 /* pages of u-area */ |