Date: Fri, 25 Apr 2003 17:53:25 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 29752 for review Message-ID: <200304260053.h3Q0rP6i095851@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=29752 Change 29752 by peter@peter_daintree on 2003/04/25 17:52:59 Use the 'syscall' instruction for syscalls. Unfortunately, syscall clobbers %rcx, which is one of the syscall arguments according to the ABI. I had a look to see what NetBSD did and they use %r10 instead. Do the same here. Affected files ... .. //depot/projects/hammer/lib/libc/x86_64/SYS.h#4 edit Differences ... ==== //depot/projects/hammer/lib/libc/x86_64/SYS.h#4 (text+ko) ==== @@ -55,4 +55,4 @@ .set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \ mov __CONCAT($SYS_,x),%rax; KERNCALL; ret -#define KERNCALL int $0x80 +#define KERNCALL movq %rcx, %r10; syscall
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304260053.h3Q0rP6i095851>