Yes, I guess I copied it, and it worked, so I didn't even notice it, and didn't bother to change it.
In retrospect, the __syscall() thing does work and maybe we shouldn't have tried so hard to avoid it and remove it from every place.
Yes, calling syscall() wastes a small amount of time (function call, switch, saving FPU - which isn't necessary for a
function call and could have been eliminated) - but it's completely negligible for most if not all cases in musl.
It's not even a syscall instruction - it's a function call.
Waldek
--
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/f7f26e7f-9b5b-4a53-83ee-543d4b726112n%40googlegroups.com.