change RTEMS definition of ALIGNBYTES

Joel Sherrill joel.sherrill@oarcorp.com
Fri Jun 19 18:16:00 GMT 2009


Hi,

The definition of ALIGNBYTES for RTEMS was not strict
enough.  If you use it to align a double or structure
gcc wants to use "load two word" instructions
(e.g. SPARC ldd), then you will get a fault.
I saw this with a port of BSD ls to RTEMS.

FWIW the linux version uses the sizeof(int) also.
I don't know if it will potentially trip the same
issue.

Please apply.  Thanks.

2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>

    * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
    so it can point to an aligned structure or double.

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


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: param.h.diff
URL: <http://sourceware.org/pipermail/newlib/attachments/20090619/a99cacce/attachment.ksh>


More information about the Newlib mailing list