This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

sign-extending addresses in libgloss


So, were there any objections to this?

-eric

2005-04-18  Eric Christopher  <echristo@redhat.com>

	* 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)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]