From owner-freebsd-doc@FreeBSD.ORG Sat Sep 6 19:40:51 2014 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 71ED3DE6 for ; Sat, 6 Sep 2014 19:40:51 +0000 (UTC) Received: from st11p01mm-asmtp001.mac.com (st11p01mm-asmtp001.mac.com [17.172.204.239]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.me.com", Issuer "VeriSign Class 3 Extended Validation SSL SGC CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44EC71D2A for ; Sat, 6 Sep 2014 19:40:50 +0000 (UTC) Received: from [192.168.1.51] (pool-71-180-105-200.tampfl.fios.verizon.net [71.180.105.200]) by st11p01mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPSA id <0NBH00B3TT7M5H10@st11p01mm-asmtp001.mac.com> for freebsd-doc@freebsd.org; Sat, 06 Sep 2014 18:40:36 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.27,0.0.0000 definitions=2014-09-06_03:2014-09-05,2014-09-06,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1409060213 From: Seo Townsend Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: quoted-printable Subject: Syscall x86 convention in Devlopers' Handbook Message-id: <396A5D5F-AED3-4D79-8CD4-356A7FECCF9F@icloud.com> Date: Sat, 06 Sep 2014 14:40:33 -0400 To: freebsd-doc@freebsd.org MIME-version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2014 19:40:51 -0000 Hey guys, this is my first time in this mailing list so I=92m not fully = aware of all the procedures=85 I was looking through the developer handbook and noticed that the = Developer=92s Handbook section on Assembly for x86 doesn=92t make any = mention of the change in the syscall calling convention from i386 to = x86-64 and I can=92t seem to find this documented anywhere. The = documentation does mention =93FreeBSD kernel uses the C calling = convention=94 (11.3.1) but doesn=92t point out that the C calling = convention changed from i386 to x86-64; and the architecture listed for = 11 is generically (x86 Assembly Language Programming). =20 Thoughts? Some ideas I had are: (1). Change =93x86 Assembly Language Programming=94 to =93i386 Assembly=94= - This would clear up the disambiguity of the 32bit architecture and = 64bit architecture. (2). Add a footnote to (11.3.1) with =93If you are using x86-64, please = note that the calling convention for both C and syscall changed from = pushing arguments on the stack to using a list of ordered registered as = outlined in the System V AMD64 ABI specification=94 (3). I would not mind eventually adding a section for =93x86-64 = assembly=94 for (11.3.2) if I could get someone to help mentor me. Thanks seotownsend=