GCC modification for ARM

Joel Sherrill joel.sherrill at OARcorp.com
Sat Feb 22 00:52:33 UTC 2003



Charles Steaderman wrote:
> 
> I am trying to port RTEMS to an ARM7 CPU. Unfortunately, the chip
> manufacturer has a bug in which data corruption can occur when using DMA
> when a SWP instruction is executed. I know that RTEMS uses patched
> compilers and libraries and I was wondering if anyone is familiar enough
> with GCC to direct me where to make a change to replace the SWP
> instruction with LDR and STR instructions.

The source for this has to be in gcc-XXX/gcc/config/arm and is probably
in
arm.md.  grep there and you might already find an option to switch the
behavior.

> Thanks,
> - Charlie
> 
> --
> Charlie Steaderman
> charlies at poliac.com
> VP Engineering
> Poliac Research Corporation
> Phone: 952.707.6245
> Cel: 612.242.6364

-- 
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