summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/net
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-04-30 18:06:14 +0000
committerpeter <peter@FreeBSD.org>2003-04-30 18:06:14 +0000
commit6ca367c8548fc5fb3638be2d6eb64d1412737525 (patch)
treea00b68c2a7317461b858b7e5a03e15cee7d0aa56 /lib/libc/amd64/net
parent09adcd8b3eb9c21fbc4881b6dcc76de2ac5e2e86 (diff)
downloadFreeBSD-src-6ca367c8548fc5fb3638be2d6eb64d1412737525.zip
FreeBSD-src-6ca367c8548fc5fb3638be2d6eb64d1412737525.tar.gz
Update for AMD64-style syscalls. Repocopied from i386/SYS.h.
Note that the syscall instruction clobbers %rcx, which is inconvenient because it is the fourth syscall argument, so we use %r10 (another scratch register) for the 4th syscall arg instead (I picked %r10 to be the same as NetBSD). int 0x80 is still possible though, and it uses %rcx as usual. Note that the syscall style syscall does *NOT* preserve all the registers, unlike int 0x80. We do not preserve the scratch registers except for %rdi and %rsi. int 0x80 does preserve everything but the return values.
Diffstat (limited to 'lib/libc/amd64/net')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud