<div dir="ltr"><span style="font-size:12.8px">> RAM1 stage: Since some RAM Physical mapping (AFTER <i><b><u><font color="#ff0000">CRB</font></u></b></i>) MUST be done at the</span><div><span style="font-size:12.8px">> beginning of the RAM stage, lookalike BIOS one</span><span style="font-size:12.8px"> (in PEI phase, I assume), CB will proceed</span></div><div><span style="font-size:12.8px">> with the usual activities, set in Protected Mode. And, as we know so far how it works, it'll</span></div><div><span style="font-size:12.8px">> finish this phase, looking for Payload.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Meant <b><i><u><font color="#ff0000">MRC</font></u></i></b> (Memory Reference Code), but for some reason wrote CRB??? These damned INTEL abbreviations will kill me...Indeed?!</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 5, 2017 at 7:12 PM, ron minnich <span dir="ltr"><<a href="mailto:rminnich@gmail.com" target="_blank">rminnich@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">in the akaros virtual machine code, we set up a simple 1:1 map and start linux at the 64-bit entry point, at which point it builds its own page tables. So entering a payload in long mode is certainly possible and IMHO ought to be the standard on amd64 -- not that anyone cares what I think anyway :-)<div><br></div><div>Anyway, I'm going to be working on replacing ramstage with linux again, so I'm not as concerted with coreboot ramstage just now ;-)</div></div></blockquote><div><br></div><div>YUP, understood. You have to have RAM stage (before Linux), where you'll do the first 4GB of Physical Memory Mapping (you know, MTRR init and such kind of work), but as I see you'll try to make minimization of it:</div><div><br></div><div><img src="cid:ii_15db79f6cccf3eca" alt="Inline image 1" style="margin-right: 0px;"><br></div><div><br></div><div>Anyway, after this you must do table init since you are, after all, switching in 64 bit Long Mode (so tables are required). Them you switch to 64b Linux, ASAP. Well, you are trying to boot within 300 to 500 msec, I see. It is a tough requirement, since these critical embedded applications MUST have rebooting times virtually set to 0. Imagine unmanned plane hit by fire, but still flying, or missile (cruse one, or you name it) hit by fire... Not a pretty picture for the inside system control! ;-)</div><div><br></div><div>Zoran</div><div><br></div></div></div></div>