newlib malloc/memalign

Joel Sherrill joel.sherrill at OARcorp.com
Mon Sep 29 21:52:53 UTC 2003


Chuck Tuffli wrote:

> I saw a posting* in March that talks about switching from using RTEM's
> malloc to the one in newlib. I'm interested in using the memalign
> function and was wondering what would I need to do to implement this
> support.
> 
> * http://www.rtems.com/rtems/maillistArchives/rtems-users/2003/march/msg00050.html

The first step would be to disable the malloc code in RTEMS,
provide the malloc mutex used by newlib (see the gxx_thread_wrappers
in RTEMS), and arrange for newlib to use the memory formerly
given to our own malloc.

> --
> Chuck Tuffli
> Agilent Technologies


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the users mailing list