[RFC 0/4] Create infrastructure for running C code from SRAM.
Russ Dill
Russ.Dill at ti.com
Fri Sep 6 14:40:09 EDT 2013
On Fri, Sep 6, 2013 at 4:14 AM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> 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.
Yes, I need to add a pair of inlines that do the asm trickery to/from
function addresses. Thanks.
More information about the linux-arm-kernel
mailing list