From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4687 invoked by alias); 18 Apr 2005 22:14:29 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 4446 invoked from network); 18 Apr 2005 22:14:23 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 18 Apr 2005 22:14:23 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j3IMEN4w013217; Mon, 18 Apr 2005 18:14:23 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j3IMEKO00425; Mon, 18 Apr 2005 18:14:20 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j3IMEIqH009765; Mon, 18 Apr 2005 18:14:18 -0400 Received: from tooth.toronto.redhat.com (tooth.toronto.redhat.com [172.16.14.29]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 698C080004E; Mon, 18 Apr 2005 18:14:18 -0400 (EDT) Date: Mon, 18 Apr 2005 22:14:00 -0000 From: jjohnstn X-X-Sender: jjohnstn@tooth.toronto.redhat.com To: Eric Christopher Cc: newlib@sources.redhat.com, Subject: Re: sign-extending addresses in libgloss In-Reply-To: <1113856509.4560.9.camel@localhost.localdomain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-04/txt/msg00499.txt.bz2 On Mon, 18 Apr 2005, Eric Christopher wrote: > So, were there any objections to this? > > -eric > If there are no objections, feel free to check it in. -- Jeff J. > 2005-04-18 Eric Christopher > > * mips/regs.S: Sign extend constants for mips64 and unify > address handling. > > Index: regs.S > =================================================================== > RCS file: /cvs/src/src/libgloss/mips/regs.S,v > retrieving revision 1.3 > diff -u -p -w -r1.3 regs.S > --- regs.S 3 Apr 2004 01:02:51 -0000 1.3 > +++ regs.S 18 Apr 2005 20:33:43 -0000 > @@ -53,15 +53,16 @@ > #define fp1 $f1 > > /* Useful memory constants: */ > -#define K0BASE 0x80000000 > #ifndef __mips64 > +#define K0BASE 0x80000000 > #define K1BASE 0xA0000000 > #define K0BASE_ADDR ((char *)K0BASE) > #define K1BASE_ADDR ((char *)K1BASE) > #else > -#define K1BASE 0xFFFFFFFFA0000000LL > +#define K0BASE 0xFFFFFFFF80000000 > +#define K1BASE 0xFFFFFFFFA0000000 > #define K0BASE_ADDR ((char *)0xFFFFFFFF80000000LL) > -#define K1BASE_ADDR ((char *)K1BASE) > +#define K1BASE_ADDR ((char *)0xFFFFFFFFA0000000LL) > #endif > > #define PHYS_TO_K1(a) ((unsigned)(a) | K1BASE) > > >