From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26555 invoked by alias); 18 Apr 2005 20:35:17 -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 26263 invoked from network); 18 Apr 2005 20:35:12 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 18 Apr 2005 20:35:12 -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 j3IKZCAY022380; Mon, 18 Apr 2005 16:35:12 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j3IKZBO07846; Mon, 18 Apr 2005 16:35:11 -0400 Received: from dhcp-172-16-25-252.sfbay.redhat.com (dhcp-172-16-25-252.sfbay.redhat.com [172.16.25.252]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j3IKZAth023006; Mon, 18 Apr 2005 16:35:10 -0400 Subject: sign-extending addresses in libgloss From: Eric Christopher To: newlib@sources.redhat.com Cc: binutils@sources.redhat.com Content-Type: text/plain Date: Mon, 18 Apr 2005 20:35:00 -0000 Message-Id: <1113856509.4560.9.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-04/txt/msg00495.txt.bz2 So, were there any objections to this? -eric 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)