<div dir="ltr">Hi,<div><br></div><div>I want to define memory for page tables at CSB337 BSP.</div><div><br></div><div>The following is quoted from lincmds.csb337</div><div><br></div><div><div>MEMORY {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>SDRAM_MMU : ORIGIN = 0x20100000, LENGTH = 16k</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>SDRAM : ORIGIN = 0x20104000, LENGTH = 15M - 16k</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>SRAM : ORIGIN = 0x00200000, LENGTH = 16k</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>NIRVANA : ORIGIN = 0, LENGTH = 0</div><div>}</div></div><div><br></div><div>That only allocate page table for level 1 page table which is 16 k ( each entry represents 1M page of memory). I'd like to add level 2 page tables to represent 4k pages. A level-2 page table consists of 256 entry and consumes 1K of memory and its base address is installed at level-1 page table entry.</div>
<div><br></div><div>The question is what's the proper size of level-2 page tables to reserve from memory and what should be its base address (ORIGIN) to be written at that linker script ?</div><div><br></div><div>Thanks,</div>
<div>Hesham</div></div>