Jonas<br><br>I changed the kernel to old 2.6.30 and the code works on the Arm target!<br><br>That kernel has been compiled with CONFIG_OABI_COMPAT=y. Newer kernels dont show this option, only EABI.<br><br>Also my ppcrossarm is :-<br>
<br>Free Pascal Compiler version 2.5.1 [2010/07/28] for arm<br>Copyright (c) 1993-2009 by Florian Klaempfl<br><br>What do you make of it? Compile a new ppcrossarm and try it?<br><br>regards<br><br>Nataraj<br><br><br><br><div class="gmail_quote">
On Fri, Aug 20, 2010 at 2:38 PM, Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On 20 Aug 2010, at 09:41, Nataraj S Narayan wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This compiles and links. But wont execute on Arm target (at91sam9263ek).<br>
Just waits endless. The equivalent C code linked to the external assembled<br>
code works well.<br>
</blockquote>
<br></div>
You probably need the "nostackframe" directive, or remove the "mov pc,lr" at the end.<br>
<br>
Compile the code with -al, compile equivalent Pascal code with -al and look at the differences in the generated ".s" files.<br>
<br>
<br>
Jonas<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br>