From owner-freebsd-arch Mon Oct 29 21: 8: 9 2001 Delivered-To: freebsd-arch@freebsd.org Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by hub.freebsd.org (Postfix) with ESMTP id 1CE8B37B403; Mon, 29 Oct 2001 21:08:08 -0800 (PST) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.11.4/8.11.4) with ESMTP id f9U587p12661; Mon, 29 Oct 2001 21:08:07 -0800 (PST) (envelope-from marcel@kayak.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.11.6/8.11.3) id f9U589p01072; Mon, 29 Oct 2001 21:08:09 -0800 (PST) (envelope-from marcel) Date: Mon, 29 Oct 2001 21:08:08 -0800 From: Marcel Moolenaar To: John Baldwin Cc: arch@FreeBSD.ORG Subject: Re: syscall() ABI questions Message-ID: <20011029210808.A1009@dhcp01.pn.xcllnt.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.21i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Oct 29, 2001 at 02:16:37AM -0800, John Baldwin wrote: > I've got some questions about td->td_retval[1] and our syscall ABI. On some > archs (ia64, alpha) we preinitialie this value to 0. On other archs (i386, > sparc64, ppc) we set it to the value of the register it will be set to so that > effectively this register's value is preserved across the syscall. My question > is do our syscall ABI's actually assume that for syscalls with only one return > value that register isn't written to? NetBSD recently changed their i386 > syscall code to preinitialize to 0 rather than %edx. Anyone have the history > on this? I don't have the history, but I do know that Linux assumes %edx is preserved. We may want to keep that in mind if for Linuxulator's sake. FYI, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message