RTEMS small memory target patch
Jeff Johnston
jjohnstn@redhat.com
Tue Aug 29 21:02:00 GMT 2006
Patch checked in.
-- Jeff J.
Joel Sherrill wrote:
> Hi,
>
> This patch is RTEMS specific and needed so we can build
> all AVR and H8300 multilib variants of RTEMS.
> --joel
>
> 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.
>
>
>
> ------------------------------------------------------------------------
>
> 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.
>
> diff -urN newlib-1.14.0-orig/newlib/libc/sys/rtems/machine/param.h newlib-1.14.0/newlib/libc/sys/rtems/machine/param.h
> --- newlib-1.14.0-orig/newlib/libc/sys/rtems/machine/param.h 2006-08-11 10:51:05.000000000 -0500
> +++ newlib-1.14.0/newlib/libc/sys/rtems/machine/param.h 2006-08-21 14:41:16.000000000 -0500
> @@ -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 */
>
>
More information about the Newlib
mailing list