From owner-freebsd-sparc64@FreeBSD.ORG Wed Oct 15 01:57:13 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E1B316A4B3 for ; Wed, 15 Oct 2003 01:57:13 -0700 (PDT) Received: from mail.speakeasy.net (mail9.speakeasy.net [216.254.0.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id E55C843F3F for ; Wed, 15 Oct 2003 01:57:10 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 12486 invoked from network); 15 Oct 2003 08:57:10 -0000 Received: from unknown (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail9.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 15 Oct 2003 08:57:10 -0000 Received: from hydrogen.funkthat.com (pkdapa@localhost.funkthat.com [127.0.0.1])h9F8v9Ce027134; Wed, 15 Oct 2003 01:57:09 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id h9F8uxLS027133; Wed, 15 Oct 2003 01:56:59 -0700 (PDT) Date: Wed, 15 Oct 2003 01:56:59 -0700 From: John-Mark Gurney To: Marcel Moolenaar Message-ID: <20031015085659.GX533@funkthat.com> Mail-Followup-To: Marcel Moolenaar , Harti Brandt , standards@freebsd.org, Bruce Evans , sparc64@freebsd.org References: <20031013153219.H45269@beagle.fokus.fraunhofer.de> <20031014103446.U45269@beagle.fokus.fraunhofer.de> <20031015045429.Q41837@gamplex.bde.org> <20031014225053.GA59096@dhcp01.pn.xcllnt.net> <20031015090422.M57857@beagle.fokus.fraunhofer.de> <20031015074437.GA60338@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031015074437.GA60338@dhcp01.pn.xcllnt.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: standards@freebsd.org cc: Bruce Evans cc: sparc64@freebsd.org Subject: Re: time_t on sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 08:57:13 -0000 Marcel Moolenaar wrote this message on Wed, Oct 15, 2003 at 00:44 -0700: > Yes. The MI code is already done and there's not much MD code that > is expected to break. It's mostly the structures that change. This > is especially painful on sparc64 because it's big-endian. I assume > that sparc64 passes syscall arguments in registers, so the syscalls > that take a time_t do not change except that there's no sign extension > prior to use. You can preserve the ABI until 2038 by ignoring the > upper 32-bits in that case. There is if you load a signed 32bit value into the register... sparc will automaticly sign extend the register when loading a 32bit value.. This was done to be backwards compatible with sparcv8. So the question is, does the values get loaded into different registers? or are they packed into a single register? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."