From 39511478d017552457061a25b363180631e223b2 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 19 Apr 2005 18:03:18 +0000 Subject: 2005-04-19 Eric Christopher * mips/regs.S: Sign extend constants for mips64 and unify address handling. --- libgloss/mips/regs.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libgloss/mips') diff --git a/libgloss/mips/regs.S b/libgloss/mips/regs.S index 17cc15a75..bdf933f13 100644 --- a/libgloss/mips/regs.S +++ b/libgloss/mips/regs.S @@ -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) -- cgit v1.2.3