<p dir="ltr">Hi Peter and Rudolf.<br>
Thanks for the answers and tips. They are realy helpfull !<br>
I'll take a look.</p>
<p dir="ltr">Rafael R. Machado</p>
<br><div class="gmail_quote"><div dir="ltr">Em Sáb, 9 de jan de 2016 17:19, Rudolf Marek <<a href="mailto:r.marek@assembler.cz">r.marek@assembler.cz</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I guess your question is more general than the coreboot related right?<br>
<br>
If you have a firmware image dump of the flash (not the file you download from<br>
board vendor) then yes, first location to be executed is the instruction located<br>
16 bytes before end of the image.<br>
<br>
In coreboot see in build/ bootblock_inc.S which also has reset16.inc and<br>
entry16.inc which is a real start. Consult the Intel or AMD manual to see the<br>
CPU state after reset. The CPU starts in real mode, but CS base is shifted to<br>
last 64KB before end of 4GB address space. In general your CPU starts in<br>
compatible mode with 8086 manufactured in 1978.<br>
<br>
Thanks<br>
Rudolf<br>
</blockquote></div>