summaryrefslogtreecommitdiff
path: root/x11/xservers/patches/patch-ag
blob: ba1620823c3e2aafe7ad5216e4411549e8e0e953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ag,v 1.1 2006/02/23 15:39:48 tron Exp $

--- programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_inline.h.orig	2006-02-23 14:45:57.000000000 +0000
+++ programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_inline.h	2006-02-23 14:55:22.000000000 +0000
@@ -28,6 +28,7 @@
 	: "cx", "di");
 } 
 
+#ifdef BROKEN_INLINE_ASSEMBLER
 static __inline__ void __memset( void * s, char c, int count ) {
 	__asm__ __volatile__(
 	"cld\n\t"
@@ -58,6 +59,9 @@
 	: "=a" (c), "=D" (s), "=d" (count) :"0" (c),"1" (s),"2" (count)
 	:"cx");
 }
+#else
+#define	__memset(s, c, count)	(void)memset((s), (c), (count))
+#endif
 
 static __inline__ void __memcpy( void *to, void *from, int n ) {
 __asm__ __volatile__("cld\n\t"