[PATCH xf86-video-mga] Write 8 bits instead of 32 to MGAREG_CACHEFLUSH

Alan Coopersmith alan.coopersmith at oracle.com
Mon Nov 26 21:15:24 UTC 2018


From: Henry Zhao <henry.zhao at oracle.com>

Fixes misaligned address crash when EXA is enabled on Solaris SPARC
(Oracle Bug id 22993744)

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/mga_exa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mga_exa.c b/src/mga_exa.c
index 86ec09e..03c5229 100644
--- a/src/mga_exa.c
+++ b/src/mga_exa.c
@@ -753,7 +753,7 @@ mgaWaitMarker(ScreenPtr pScreen, int marker)
 
     WAITFIFO(1);
 
-    OUTREG(MGAREG_CACHEFLUSH, 0);
+    OUTREG8(MGAREG_CACHEFLUSH, 0);
 
     /* wait until the "drawing engine busy" bit is unset */
     while (INREG (MGAREG_Status) & 0x10000);
-- 
2.15.3



More information about the xorg-devel mailing list