From owner-cvs-all@FreeBSD.ORG Wed Apr 30 11:06:14 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDDA837B401; Wed, 30 Apr 2003 11:06:14 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7134343F75; Wed, 30 Apr 2003 11:06:14 -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 h3UI6E0U015778; Wed, 30 Apr 2003 11:06:14 -0700 (PDT) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3UI6E50015775; Wed, 30 Apr 2003 11:06:14 -0700 (PDT) Message-Id: <200304301806.h3UI6E50015775@repoman.freebsd.org> From: Peter Wemm Date: Wed, 30 Apr 2003 11:06:14 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/amd64 SYS.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2003 18:06:15 -0000 peter 2003/04/30 11:06:14 PDT FreeBSD src repository Modified files: lib/libc/amd64 SYS.h Log: 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. Revision Changes Path 1.25 +4 -7 src/lib/libc/amd64/SYS.h