<div dir="ltr">Hello, <div class="gmail_extra"><br><div class="gmail_quote">2018-01-10 18:03 GMT+01:00 Karoly Balogh (Charlie/SGR) <span dir="ltr"><<a href="mailto:charlie@scenergy.dfmk.hu" target="_blank">charlie@scenergy.dfmk.hu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Hi,<br>
<br>
On Wed, 10 Jan 2018, Matias Vara wrote:<br>
<br>
</span><span class="">> Thank you very much Karol, I completly missed this point during the<br>
> development of my kernel (Or maybe I had in mind sometime ago but I<br>
</span>> forgot it)It was only when I decided to play with -02 that all these<br>
> issues arrised. <br>
<br>
BTW, your code (as shown by the parameter passing in your assembler dumps)<br>
seems to use the Microsoft x64 calling convention, which declares RSI<br>
value as callee-saved, and then your code overwrites that without saving.<br>
<br>
So the fact that your code overwrites it, could be the culprit. (And then<br>
the OUTSD instruction also increases RSI by 4, so even if that MOV<br>
wouldn't be there, you'd still need to save it.)<br>
<br>
Also note that the 64bit x86-64 ABI is very different between Linux and<br>
Windows, for example.<br>
<br></blockquote><div><br></div><div>Thanks, I am going to review all the assembler code.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
BTW, developing a kernel in Pascal is cool... ;)<br></blockquote><div><br></div><div>It is indeed :)</div><div><br></div><div>Matias</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Charlie</font></span><br>______________________________<wbr>_________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.<wbr>org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/<wbr>cgi-bin/mailman/listinfo/fpc-<wbr>pascal</a><br></blockquote></div><br></div></div>