Browse code

- faster i386 unlock

Andrei Pelinescu-Onciul authored on 14/02/2002 00:28:22
Showing 3 changed files
... ...
@@ -77,7 +77,7 @@ ifeq ($(ARCH), i386)
77 77
 endif
78 78
 
79 79
 ifeq ($(ARCH), sparc64)
80
-	DEFS+= -DFAST_LOCK
80
+#	DEFS+= -DFAST_LOCK
81 81
 endif
82 82
 
83 83
 
... ...
@@ -139,7 +139,7 @@ ifeq  ($(OS), SunOS)
139 139
 		MOD_LDFLAGS=-g -G
140 140
 	endif
141 141
 	ifeq ($(ARCH), sparc64)
142
-		CFLAGS+= -mv8 -Wa,-xarch=v8plus
142
+#		CFLAGS+= -mv8 -Wa,-xarch=v8plus
143 143
 	endif
144 144
 
145 145
 YACC=yacc
... ...
@@ -65,7 +65,8 @@ inline static void release_lock(fl_lock_t* lock)
65 65
 	char val;
66 66
 	val=0;
67 67
 	asm volatile(
68
-		" xchg %b0, %1" : "=q" (val), "=m" (*lock) : "0" (val) : "memory"
68
+		" movb $0, (%0)" : /*no output*/ : "r"(lock): "memory"
69
+		/*" xchg %b0, %1" : "=q" (val), "=m" (*lock) : "0" (val) : "memory"*/
69 70
 	); /* hmm, maybe lock; movb $0, [%1] would be faster ???*/
70 71
 #elif defined __sparc
71 72
 	asm volatile(
... ...
@@ -5,14 +5,14 @@
5 5
 #
6 6
 
7 7
 
8
-debug=9          # debug level (cmd line: -dddddddddd)
9
-#fork=yes          # (cmd. line: -D)
8
+debug=3          # debug level (cmd line: -dddddddddd)
9
+fork=yes          # (cmd. line: -D)
10 10
 fork=no
11 11
 log_stderror=yes # (cmd line: -E)
12 12
 #log_stderror=no	# (cmd line: -E)
13 13
 
14 14
 
15
-children=4
15
+children=8
16 16
 check_via=no     # (cmd. line: -v)
17 17
 dns=off           # (cmd. line: -r)
18 18
 rev_dns=off      # (cmd. line: -R)