head	1.3;
access;
symbols
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.2
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	RELEASE_4_0_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2002.11.27.15.38.37;	author vanilla;	state dead;
branches;
next	1.2;

1.2
date	2000.06.10.11.47.53;	author vanilla;	state Exp;
branches;
next	1.1;

1.1
date	2000.02.06.07.04.31;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Fix build in -current.

PR:		ports/45710
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
Obtained from:	japanese/kon2-*
@
text
@--- src/vc.c.orig	Mon Apr 15 09:46:27 1996
+++ src/vc.c	Sat Jun 10 19:40:19 2000
@@@@ -92,28 +92,26 @@@@
 inline	void	blatch(void *head, int n)
 {
 
-    __asm__("\t clc\n"
+    __asm__ volatile("\t clc\n"
 	    "1:\n"
 	    "\t andb %%bl, (%%eax)\n"
 	    "\t incl %%eax\n"
 	    "\t loop 1b\n"
-	    :
-	    : "eax" ((long)head), "bl" (0x7F), "c" (n)
-	    : "bl", "cx" );
+	    : "=bl" (head), "=c" (n)
+	    : "eax" ((long)head), "0" (0x7F), "1" (n));
 }
 
 static
 inline	void	llatch(void *head, int n)
 {
 
-    __asm__("\t clc\n"
+    __asm__ volatile ("\t clc\n"
 	    "1:\n"
 	    "\t andl %%ebx, (%%eax)\n"
 	    "\t addl $4, %%eax\n"
 	    "\t loop 1b\n"
-	    :
-	    : "eax" ((long)head), "ebx" (0x7F7F7F7F), "c" (n>>2)
-	    : "ebx", "cx" );
+	    : "=ebx" (head), "=c" (n)
+	    : "eax" ((long)head), "0" (0x7F7F7F7F), "1" (n>>2));
 }
 
 static inline u_int	TextAddress(u_int x, u_int y)
@


1.2
log
@Fix the refresh problem.
Submitted by:	ja-kon ports.
@
text
@@


1.1
log
@Fix for 4.0-current.

Submitted by:	Keith Jang (keith@@freebsd.sinica.edu.tw)
@
text
@d1 9
a9 3
--- src/vc.c.old	Tue Jan 25 20:16:57 2000
+++ src/vc.c	Tue Jan 25 20:32:35 2000
@@@@ -100,8 +100,8 @@@@
d15 1
d17 1
a17 2
+	    : "eax" ((long)head), "0" (0x7F), "1" (n)
 	    : "bl", "cx" );
d20 7
a26 1
@@@@ -114,8 +114,8 @@@@
d32 1
d34 1
a34 2
+	    : "eax" ((long)head), "0" (0x7F7F7F7F), "1" (n>>2)
 	    : "ebx", "cx" );
d37 1
@

