OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 5:34 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Memory map and.. mapping on embedded
PostPosted: Tue Jun 13, 2017 8:19 am 
Offline
Member
Member

Joined: Tue Mar 10, 2015 10:08 am
Posts: 97
Hi,

When a documentation gives a memory mapping, like this one:

Module Address (It is for Cluster CPU) Size
SRAM A1 0x0000 0000---0x0000 FFFF
SRAM A2 0x0004 4000---0x0004 BFFF
SRAM C 0x0001 0000---0x0001 AFFF
DE De-interlaced 0x0100 0000---0x013F FFFF
SMC
CCU
UART 1
...
DDR-III/LPDDR-II 0x4000 0000---0xBFFF FFFF (this is of interest)

Should I manually map all these or just the ddr3 (ram)?
Those other physical address link to memory mapped devices so they should not generate a page fault on kernel access, right? Because it is not RAM, the CPU automatically manage them (hmmm?)

Not sure on this one.

Please advise! :)


Top
 Profile  
 
 Post subject: Re: Memory map and.. mapping on embedded
PostPosted: Tue Jun 13, 2017 12:18 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5137
It depends on the MMU.

For example, the MMU in some MIPS CPUs has a portion of the virtual address space dedicated to a fixed virtual-to-physical mapping. In this case, you wouldn't have to set up the MMU because it's already set up for you. Just use the appropriate virtual address for whichever physical address you want to access.

On the other hand, the MMU in most x86 CPUs doesn't have any fixed mappings. If you want to access a memory-mapped device, you must configure the MMU to provide a valid mapping before you can access that device.


Top
 Profile  
 
 Post subject: Re: Memory map and.. mapping on embedded
PostPosted: Tue Jun 13, 2017 12:26 pm 
Offline
Member
Member

Joined: Tue Mar 10, 2015 10:08 am
Posts: 97
Thanks Octocontrabass :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 87 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group