FreeBSD System Calls in Assembly

cpghost cpghost at
Tue Aug 1 01:00:55 UTC 2017

On 07/31/17 21:59, Makketron wrote:
> Hello,
> It seems that the  documentation here doesn't apply for 64-bits.
> I asked a question on stackoverflow. I thought I should ask it here too
> I am running FreeBSD 11.0.
> The following from the FreeBSD manual does NOT print the "Hello, World!"
> message:


Basically, in i386, you pass function values on the stack,
and on amd64 via registers.

The amd64 ABI calling convention, shared by common Unices:

Just remember that the list of syscalls and therefore the
syscall ID differs across the various Unix variants...


> Thank you.
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list