From owner-freebsd-hackers Tue Dec 10 11:53:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CAFD37B401; Tue, 10 Dec 2002 11:53:36 -0800 (PST) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB96C43EB2; Tue, 10 Dec 2002 11:53:35 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.5/8.12.5) with ESMTP id gBAJrYOM022096; Tue, 10 Dec 2002 11:53:34 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.5/8.12.5/Submit) id gBAJrYkx022095; Tue, 10 Dec 2002 11:53:34 -0800 (PST) (envelope-from dillon) Date: Tue, 10 Dec 2002 11:53:34 -0800 (PST) From: Matthew Dillon Message-Id: <200212101953.gBAJrYkx022095@apollo.backplane.com> To: Chuck Tuffli Cc: phk@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: registers not saved References: <20021210154635.GC605@thegrail.rose.agilent.com> <99179.1039535914@critter.freebsd.dk> <20021210161813.GA681@thegrail.rose.agilent.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In C for the IA32, EAX, ECX, and EDX are scratch registers. All other registers must be saved and restored by the procedure. Also keep in mind that the return value of a procedure is placed in eax. If the return value is a 64 bit value, it is placed in eax and edx. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message