xf86-video-sunffb fix

Mark Kettenis mark.kettenis at xs4all.nl
Sun Jul 19 08:35:33 PDT 2009


The following diff is necessary to compile the sunffb on OpenBSD.

ffb_asm.s: Assembler messages:
ffb_asm.s:67: Error: detected global register use not covered by .register pseudo-op

NetBSD has similar changes in, and frankly speaking, I would be
surprised if the Linux distros that care about SPARC don't have
something similar.

Can somebody commit this?


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


More information about the xorg-devel mailing list