<div dir="ltr">Thanks jfb :<div><br></div><div>Just to be clear<br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div dir="ltr"><div>* It would be better to put the ARM code with the NetBSD ARM code, not separate.</div></div></blockquote><div><br></div><div>I don't see how I can combine them, (since struct arm_sync_icache_args looks like</div>




<div>it's BSD specific). I can move the two implementations together in the file, though.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div dir="ltr">
<div>* Some platforms apparently fail doing this properly, and syscall returns an error. I don't know if Android guarantees that this works, but it may be worth checking the return value and aborting on syscall failure.</div>




</div></blockquote><div><br></div><div>There's several critical codepaths on android that assume success. I don't see a</div><div>CTS test that ensures that android kernels support it, though. I don't mind adding an</div>



<div>abort, since it's pretty dangerous to assume that it will succeeds. What's the right</div><div>"accepted" way to do that ? call compilerrt_abort() ?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div dir="ltr">


<div>* JITs I've seen all use inline asm with a straight call to svc (with proper ARM/Thumb headache). There seems to be mysticism around this that I've never quite grasped, since the compiler should just emit the svc. See: <a href="http://v8.googlecode.com/svn/branches/bleeding_edge/src/arm/cpu-arm.cc" target="_blank">http://v8.googlecode.com/svn/branches/bleeding_edge/src/arm/cpu-arm.cc</a></div>
</div></blockquote><div><br></div><div>I somewhat naively assumed that there would be code does this somewhere</div><div>in the compiler-rt codebase, but there doesn't appear to be any. </div><div><br></div><div>Is using the chromium code here an option ? Is the v8 / chromium license</div>
<div>compatible with compiler-rt's ? Where does third party code go ?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div dir="ltr">



<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Feb 26, 2014 at 8:36 AM, Narayan Kamath <span dir="ltr"><<a href="mailto:narayan@google.com" target="_blank">narayan@google.com</a>></span> wrote:<br>







</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr"><div>Note that both arm32 and mips flavours of this code generate</div>





<div>a syscall. </div><div><br></div>
<div><br></div>_________________<br>Save Rainforests
</div>
<br></div></div>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>_________________<br>Save Rainforests
</div></div></div>