Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/include Tweak i386_atomic_clearb...



details:   https://anonhg.NetBSD.org/src/rev/a0fed3f96289
branches:  sommerfeld_i386mp_1
changeset: 482330:a0fed3f96289
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sun Dec 31 00:32:51 2000 +0000

description:
Tweak i386_atomic_clearbits_l based on suggestions from mycroft

diffstat:

 sys/arch/i386/include/atomic.h |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r b02bf1a82125 -r a0fed3f96289 sys/arch/i386/include/atomic.h
--- a/sys/arch/i386/include/atomic.h    Fri Dec 29 21:38:40 2000 +0000
+++ b/sys/arch/i386/include/atomic.h    Sun Dec 31 00:32:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic.h,v 1.1.2.3 2000/08/18 03:11:55 sommerfeld Exp $ */
+/* $NetBSD: atomic.h,v 1.1.2.4 2000/12/31 00:32:51 sommerfeld Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -62,8 +62,7 @@
 
 static __inline void 
 i386_atomic_clearbits_l (volatile u_int32_t *ptr, unsigned long bits) {
-    bits = ~bits;
-    __asm __volatile("lock ; and %1,%0" :  "=m" (*ptr) : "ir" (bits));
+    __asm __volatile("lock ; andl %1,%0" :  "=m" (*ptr) : "ir" (~bits));
 }
 
 #endif



Home | Main Index | Thread Index | Old Index