<div dir="ltr">Hi there,<div><br></div><div>I am working on providing memory protection for many targets/BSPs that RTEMS support through a library called libmm. Previous MMU projects depended on "Pages" to provide memory protection. I was thinking of using BATs for extending libmm for PowerPC targets. The following are some characteristics for BAT (Block Address Translation) and Pages for PowerPC/mpc6xx.</div>
<div><br></div><div>For BATs : </div><div>- BAT sizes varies from 128KB up to 256 MB.</div><div>- 8 pairs of register to describe blocks of memory: 4 for data blocks and 4 for instructions blocks.</div><div>- It's faster than Page translation.</div>
<div>- Simple.</div><div><br></div><div>For Pages : </div><div>- Page sizes begins from 4KB.</div><div>- Hash function are used for Page tables search and insert.</div><div>- Slower than BAT. </div><div>- Complex Code and cost much time when dynamically change attributes. </div>
<div><br></div><div>The current code for libmm/PowerPC is using Pages. Do you think it's suitable to implement libmm to use BAT also ? </div><div><br></div><div>Waiting for your feed back. </div><div><br></div><div>Thanks,</div>
<div>Hesham</div></div>