From owner-p4-projects@FreeBSD.ORG Fri Apr 25 17:53:27 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2403837B404; Fri, 25 Apr 2003 17:53:27 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C275C37B401 for ; Fri, 25 Apr 2003 17:53:26 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F81543FAF for ; Fri, 25 Apr 2003 17:53:26 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3Q0rQ0U095856 for ; Fri, 25 Apr 2003 17:53:26 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3Q0rP6i095851 for perforce@freebsd.org; Fri, 25 Apr 2003 17:53:25 -0700 (PDT) Date: Fri, 25 Apr 2003 17:53:25 -0700 (PDT) Message-Id: <200304260053.h3Q0rP6i095851@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Subject: PERFORCE change 29752 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2003 00:53:28 -0000 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