summaryrefslogtreecommitdiffstats
path: root/src/mesa/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/sparc')
-rw-r--r--src/mesa/sparc/clip.S7
-rw-r--r--src/mesa/sparc/norm.S8
-rw-r--r--src/mesa/sparc/xform.S8
3 files changed, 21 insertions, 2 deletions
diff --git a/src/mesa/sparc/clip.S b/src/mesa/sparc/clip.S
index fc5c677ee4a..4243cae4530 100644
--- a/src/mesa/sparc/clip.S
+++ b/src/mesa/sparc/clip.S
@@ -25,6 +25,13 @@
#define VEC_SIZE_3 7
#define VEC_SIZE_4 15
+#ifdef SVR4
+ /* Solaris requires this for 64-bit. */
+ .register %g2, #scratch
+ .register %g3, #scratch
+ .register %g7, #scratch
+#endif
+
.text
.align 64
diff --git a/src/mesa/sparc/norm.S b/src/mesa/sparc/norm.S
index 02f0f0d4c3e..6f7356b948f 100644
--- a/src/mesa/sparc/norm.S
+++ b/src/mesa/sparc/norm.S
@@ -1,7 +1,13 @@
-/* $Id: norm.S,v 1.2 2003/12/01 22:40:51 brianp Exp $ */
+/* $Id: norm.S,v 1.3 2004/04/26 10:10:25 alanh Exp $ */
#include "sparc_matrix.h"
+#ifdef SVR4
+ /* Solaris requires this for 64-bit. */
+ .register %g2, #scratch
+ .register %g3, #scratch
+#endif
+
.text
#if defined(__sparc_v9__) && !defined(__linux__)
diff --git a/src/mesa/sparc/xform.S b/src/mesa/sparc/xform.S
index a57d35720e4..769a9c16faa 100644
--- a/src/mesa/sparc/xform.S
+++ b/src/mesa/sparc/xform.S
@@ -1,4 +1,4 @@
-/* $Id: xform.S,v 1.2 2001/06/05 23:54:01 davem69 Exp $ */
+/* $Id: xform.S,v 1.3 2004/04/26 10:10:25 alanh Exp $ */
/* TODO
*
@@ -18,6 +18,12 @@
#include "sparc_matrix.h"
+#ifdef SVR4
+ /* Solaris requires this for 64-bit. */
+ .register %g2, #scratch
+ .register %g3, #scratch
+#endif
+
.text
.align 64