<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">Am 02.02.2018 18:12 schrieb "Matias Vara" <<a href="mailto:matiasevara@gmail.com">matiasevara@gmail.com</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, <br><div class="gmail_extra"><br><div class="gmail_quote"><div class="elided-text">2018-02-02 17:17 GMT+01:00 Sven Barth via fpc-pascal <span dir="ltr"><<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<wbr>org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><span class="m_-7894977870011006332gmail-"><div><div class="gmail_extra"><div class="gmail_quote">Am <a href="tel:02%2002%2020%2018%2015" value="+33202201815" target="_blank">02.02.2018 15</a>:50 schrieb "Matias Vara" <<a href="mailto:matiasevara@gmail.com" target="_blank">matiasevara@gmail.com</a>>:<br type="attribution"><blockquote class="m_-7894977870011006332gmail-m_96509294001700088quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for the answer, I will imitate in Toro the behavior of Win64. </div></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">Maybe it wound be better if you try to use the i386-embedded or x86_64-embedded targets. The non-embedded targets are simply not geared towards usage on a bare platform</div><div dir="auto"><br></div></div></blockquote><div><br></div></div><div>Thanks for the suggestion, I don't think I am able to do that since the whole kernel  compiles well by using the Win64 target. So I am not planing to change the target. <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I notice that the code is in rtl/win64/seh64.inc so I am starting to try to understand it. </span></div></div></div></div></blockquote></div></div></div><div dir="auto">Most of the exception handling and unwinding is done by Windows, relying on specific sections in the binary. You essentially picked one of the worst targets to implement your kernel with... </div><div dir="auto">Another plus of the embedded target: you can disable RTL features that you don't need (e.g. RTTI, threading, etc.). </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"></div></div>