<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 2, 2017 at 12:08 PM Zoran Stojsavljevic <<a href="mailto:zoran.stojsavljevic@gmail.com">zoran.stojsavljevic@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br></div><div dir="ltr"><div><span style="font-size:12.8px"><br></span></div></div><div dir="ltr"><div><span style="font-size:12.8px">So, turning on the Virtual Mode (paging ON), you'll also imply that Coreboot will initialize and use MMU, don't you?</span></div></div></blockquote><div><br></div><div>sure. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Am I correct, or you can use paging without MMU?!</span></div></div></blockquote><div><br></div><div>MMU must be on.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8px"> I doubt that, perhaps. So, then, I would like to see this code in Coreboot where MMU is initialized. And how it is initialized (maybe there is a some over-simplified mode of operation using 2MB pages).</span></div></div></blockquote><div><br></div><div>yep.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">And my question is: what for? Or I did not get the idea... Who really needs to use paging in boot-loaders? Even INTEL, which (on purpose) makes things way over-dimensioned and over-complicated, does NOT use paging in UEFI BIOSes, so far???</span></div></div><div dir="ltr"><div><br></div></div></blockquote><div><br></div><div>it's trivial to turn on paging. In harvey I've got it down to 160 lines, including comments and white space. I made it much more compact in my CL from 1/2014.</div><div><br></div><div>If you turn on paging you can capture null pointer derefs, and all other out of range address references. And relocatable modules are much easier..</div><div><br></div><div>My question is, why not do it? I don't see any harm. All the other platforms in coreboot use paging. What's so special about x86 that it should not use paging?</div><div><br></div><div>ron</div></div></div>