PERFORCE change 29752 for review
Peter Wemm
peter at FreeBSD.org
Fri Apr 25 17:53:28 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=29752
Change 29752 by peter at 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
More information about the p4-projects
mailing list