<div dir="ltr">Hi,<div><br></div><div>I'm working with RTEMS 4.9.3 and the mvme3100 BSP</div><div><br><div style>In trying to emulate the vxworks function, memalign( ), and it looks like:</div><div style><br></div><div style>

1) there is no equivalent in RTEMS, but it's prototyped in newlib</div><div style>2) posix_memalign( ) is defined in cpukit/libcsupport/src, but does not appear in any headers and cannot be linked against. It's definitely in librtemscpu.a:</div>

<div style><br></div><div style>---------------------------------------</div><div style>dchabot@dev32new--> nm /usr/powerpc-rtems4.9/mvme3100/lib/librtemscpu.a<br></div><div style><div>libcsupport_a-posix_memalign.o:</div>

<div>00000000 T posix_memalign</div><div>         U rtems_malloc_statistics</div><div>         U rtems_memalign</div></div><div style>---------------------------------------<br></div></div><div style><br></div><div style>

3) rtems_memalign( ) appears to be the only functional variant<br></div><div style><br></div><div style>Is there a more elegant solution here than creating my own memalign( ) wrapper around rtems_memalign( ) ? It seems like an error to not have a posix_memalign( ) available...</div>

<div style><br></div><div style><br></div><div style>-- dc</div></div>