<div dir="ltr">I intended to dynamically allocate memory for it, but i thought it would be faster to define an area for lvl2 page tables to access/allocate them faster. I just want to be sure that CSB337 implement malloc. I noticed that line at linker script for CSB337<div>
<br></div><div>HeapSize = 0;</div><div><br></div><div>that why i am inquiring about that issue.</div><div><br></div><div>thanks,</div><div>Hesham</div><div><br><br><div class="gmail_quote">On Sat, Aug 4, 2012 at 11:02 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:Joel.Sherrill@oarcorp.com" target="_blank">Joel.Sherrill@oarcorp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does it have to be placed in the linker script?<br>
<br>
Can you dynamically allocate it as the properly needed size?<br>
________________________________________<br>
From: <a href="mailto:rtems-devel-bounces@rtems.org">rtems-devel-bounces@rtems.org</a> [<a href="mailto:rtems-devel-bounces@rtems.org">rtems-devel-bounces@rtems.org</a>] On Behalf Of Hesham Moustafa [<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>]<br>

Sent: Saturday, August 04, 2012 7:52 AM<br>
To: <a href="mailto:rtems-devel@rtems.org">rtems-devel@rtems.org</a><br>
Subject: [GSoC] Defining Memory for MMU page tables at CSB337<br>
<div class="HOEnZb"><div class="h5"><br>
Hi,<br>
<br>
I want to define memory for page tables at CSB337 BSP.<br>
<br>
The following is quoted from lincmds.csb337<br>
<br>
MEMORY {<br>
SDRAM_MMU : ORIGIN = 0x20100000, LENGTH = 16k<br>
SDRAM : ORIGIN = 0x20104000, LENGTH = 15M - 16k<br>
SRAM : ORIGIN = 0x00200000, LENGTH = 16k<br>
NIRVANA : ORIGIN = 0, LENGTH = 0<br>
}<br>
<br>
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.<br>

<br>
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 ?<br>
<br>
Thanks,<br>
Hesham<br>
</div></div></blockquote></div><br></div></div>