ARM : Kernel : Setting up of MMU in head.S

Prakash K.B. prakashk75 at gmail.com
Thu Mar 31 02:31:46 EDT 2011


Hi Syed.

On Thu, Mar 31, 2011 at 12:55 AM, sk.syed2 <sk.syed2 at gmail.com> wrote:

> > The 2 lines above
> > 1:  orr    r3, r7, r5, lsl #20        @ flags + kernel base ==> Correct
> >     str    r3, [r4, r5, lsl #2]        @ identity mapping  ==> ??
> >
> > create a section entry using index based on physical address.
> Lets say before mmu is turned on PC is at physical address XXX, also
> say at XXX there is going to be mmu on instruction. The next
> instruction fetch would be from XXX + 4 which would now be VIRTUAL
> address(as mmu is turned on), which should still get converted to (via
> page tables set up as above) to XXX + 4 (in physical). This is called
> identity mapping as specified in the comments. Hope this helps.
>
> [Prakash]Awesome. This is indeed very insightful. I am now starting to
understand this portion of the kernel better. Thanks a lot. :-)

> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

-Prakash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110331/0354d099/attachment.html 


More information about the Kernelnewbies mailing list