This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: STM32 - Allow initialisation of SRAM area from ROM.


Chris Holgate <chris@zynaptic.com> writes:

> This patch adds support for SRAM initialisation from ROM in STM32 ROM
> based builds.  It allows declarations such as the following to correctly
> allocate and initialise variables in the SRAM area.
> 
> static cyg_uint16 dma_tx_null __attribute__((section (".sram"))) = 0xFFFF;
> 
> Please could someone who is a linker script expert check my changes to
> src/cortexm.ld, since linker scripts are not my forte!

Thanks, now checked in.


-- 
Nick Garnett                                        eCos Kernel Architect
eCosCentric Limited    http://www.eCosCentric.com        The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales:                          Reg No: 4422071
Besuchen Sie uns vom 3.-5.03.09 auf der Embedded World 2009, Stand 11-300
Visit us at Embedded World 2009, NÃrnberg, Germany, 3-5 Mar, Stand 11-300


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]