<div>Hello,</div>
<div>&nbsp;</div>
<div>Based on the following thread&nbsp;regarding Linux memory map:</div>
<div><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://ozlabs.org/pipermail/linuxppc-embedded/2000-May/001333.html" target="_blank">http://ozlabs.org/pipermail/linuxppc-embedded/2000-May/001333.html</a>
</div>
<div>&nbsp;</div>
<div>Obviously, I am still a newbie in Linux kernel&nbsp;and I find it hard to grasp things especially Linux MM.&nbsp; I quoted some lines from this thread (from Dan&#39;s post), then&nbsp;some follow-up questions.&nbsp; I do hope you could help me out in these:
</div>
<div>&nbsp;</div>
<div>1.)&nbsp; <em>&quot;Virtual addresses from 0 to 0x7fffffff are for user context.&quot;</em></div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a.) If TASK_SIZE is defined as 0x80000000, does this necessarily mean that 2G-2G split is used?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>2.)&nbsp; <em>&quot;For this reason, and since it followed prior PowerPC platform examples, I chose to map the embedded 8xx kernel to the 0xc0000000 virtual address.&quot;</em></div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a.)&nbsp; This 0xc0000000 virtual address must be defined as the value of PAGE_OFFSET, right?</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b.) &nbsp;Does this mean that the kernel&#39;s .text section is located in this address?</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; c.)&nbsp; If user space is only up to 0x80000000, and the kernel starts at 0xc0000000, what could possibly be located in between?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>3.)&nbsp; <em>&quot;Prior to this KVM&nbsp;initialization, we choose to map virtual to physical addresses&nbsp;1:1.&nbsp; That is, the kernel virtual address exactly matches the&nbsp;physical address on the bus.&nbsp; These mappings are typically done&nbsp;in arch/ppc/kernel/head.S, or arch/ppc/mm/init.c.&nbsp; Only&nbsp;&nbsp; absolutely necessary mappings should be done at this time, for&nbsp;example board control registers or a serial uart.&nbsp; Normal device&nbsp;driver initialization should map resources later when necessary.&quot; 
</em></div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a.)&nbsp; Is there any chance that the mapping done here is relocated later in the initialization process?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><span></span>I would really appreciate your input on this.&nbsp; Thank you very much!</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Regards,</div><span class="sg">
<div>Shiera</div></span>