Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
maxdan
PostPosted: Sep 06, 2010 - 04:09 PM
Newbie


Joined: Sep 06, 2010
Posts: 2


Hi all,
does anybody know where I might find a description of the virtual memory layout of AVR32 linux? I mean something like the table at http://www.arm.linux.org.uk/developer/memory.txt, but for AVR32. I have been googling for a while, but I was not able to find it.

Thanks a lot!
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Sep 07, 2010 - 07:25 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

See the technical reference manual for the AP7 devices, available at http://www.atmel.com/dyn/resources/prod ... c32001.pdf
 
 View user's profile Send private message  
Reply with quote Back to top
maxdan
PostPosted: Sep 07, 2010 - 08:10 AM
Newbie


Joined: Sep 06, 2010
Posts: 2


Thanks hce.
If you mean the picture at page 48, I have already seen that. What I am trying to understand is what is mapped by the kernel in the cachable segments (P1 and P3). For instance, where are skb data structures (used by the TCP stack to store messages) allocated?
 
 View user's profile Send private message  
Reply with quote Back to top
how
PostPosted: Sep 17, 2010 - 12:08 PM
Posting Freak


Joined: Apr 26, 2006
Posts: 1079
Location: Trondheim, Norway

The kernel image as well as everything allocated from the page allocator and slab allocator is located in the P1 segment. vmalloc() and vmap() use the P3 segments to set up virtual mappings of discontiguous physical regions (used by the module loader, for example). ioremap() use the P2, P3 and P4 segments, depending on the physical address and the cache policy (it tries to use P2 and P4 first because they don't need any precious TLB entries, but falls back to P3 if necessary).

The skb data structures are allocated through kmalloc() and are located in the P1 segment.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits