All of lore.kernel.org
 help / color / mirror / Atom feed
* Pass through kernel memory manager
@ 2014-02-07 20:29 Paul Chavent
  2014-02-19 23:48 ` Peter Teoh
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Chavent @ 2014-02-07 20:29 UTC (permalink / raw)
  To: kernelnewbies

Hi

I'm working on an ARM926EJS based SOM (OMAPL138). The ARM has internal memory spaces (8k one and 128k one) where i would like to put some code.

I thought to use something like :

void foobar (void) __attribute__ ((section ("bar")));

Then link with

-Wl,--section-start,bar=FFFF1000


But the Linux loader fails to load this segment.

So, is it worth to try to achieve to run code at desired position ?

Is there any way to tell Linux to 1:1 map some physical regions to processes address space ? Perhaps the memmap= kernel parameter ?

Thanks for your help.

Paul.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Pass through kernel memory manager
  2014-02-07 20:29 Pass through kernel memory manager Paul Chavent
@ 2014-02-19 23:48 ` Peter Teoh
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Teoh @ 2014-02-19 23:48 UTC (permalink / raw)
  To: kernelnewbies

the parameter you passed in section start looks weird, given that your
physical memory so limited.   (8K and 128K, 2 different bank? if so then
only one is available at any one time?),

Perhaps some knowledge about linker-script should help:

http://blogs.bu.edu/md/2011/11/15/the-dark-art-of-linker-scripts/

the "1:1" mapping is called identity mapping, and linker script provide a
way for you to load the binary into specific part of the physical memory,



On Sat, Feb 8, 2014 at 4:29 AM, Paul Chavent <paul.chavent@fnac.net> wrote:

> Hi
>
> I'm working on an ARM926EJS based SOM (OMAPL138). The ARM has internal
> memory spaces (8k one and 128k one) where i would like to put some code.
>
> I thought to use something like :
>
> void foobar (void) __attribute__ ((section ("bar")));
>
> Then link with
>
> -Wl,--section-start,bar=FFFF1000
>
>
> But the Linux loader fails to load this segment.
>
> So, is it worth to try to achieve to run code at desired position ?
>
> Is there any way to tell Linux to 1:1 map some physical regions to
> processes address space ? Perhaps the memmap= kernel parameter ?
>
> Thanks for your help.
>
> Paul.
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140220/04efb8fb/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-19 23:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-07 20:29 Pass through kernel memory manager Paul Chavent
2014-02-19 23:48 ` Peter Teoh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.