[RFC 0/4] Create infrastructure for running C code from SRAM.

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Sep 6 07:14:08 EDT 2013


On Wed, Sep 04, 2013 at 02:47:51PM -0700, Russ Dill wrote:
> I think this is already taken care of by the way sram.c is using
> genalloc. The allocation returned should be aligned to 32 bytes. The
> thumb bit shouldn't be an issue as code is copied based on the start
> and end makers made by the linker. I may need to add .align statements
> in the linker so that the start and end markers for the copied code
> are aligned to at least 8 bytes.

I think you need to read up on what fncpy does... there's more to it
than just merely copying code at an appropriate alignment.



More information about the linux-arm-kernel mailing list