[PATCH] define %g2 and %g3 registers when building 64 bit version of the sunffb driver.

dennis at ausil.us dennis at ausil.us
Mon Apr 13 11:04:42 PDT 2009


From: Dennis Gilmore <dennis at ausil.us>

---
 src/VISmoveImage.s |    2 ++
 src/ffb_asm.s      |    6 ++++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/VISmoveImage.s b/src/VISmoveImage.s
index 43815f5..79a887f 100644
--- a/src/VISmoveImage.s
+++ b/src/VISmoveImage.s
@@ -79,6 +79,8 @@
 #if defined(__sparc_v9__) || defined(__sparcv9) || defined(__arch64__)
 #define SMUL			mulx
 #define ICC			xcc
+.register %g2,#scratch
+.register %g3,#scratch
 #else
 #define SMUL			smul
 #define ICC			icc
diff --git a/src/ffb_asm.s b/src/ffb_asm.s
index 37ca92e..ef6b2ea 100644
--- a/src/ffb_asm.s
+++ b/src/ffb_asm.s
@@ -24,6 +24,12 @@
  */
 /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_asm.s,v 1.1 2000/05/18 23:21:35 dawes Exp $ */
 
+
+#if defined(__sparc_v9__) || defined(__sparcv9) || defined(__arch64__)
+.register %g2,#scratch
+.register %g3,#scratch
+#endif
+
 /* Hardware register offsets */
 #define FFB_BY		0x0060
 #define FFB_DY		0x0068
-- 
1.6.2.2




More information about the xorg mailing list