Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2004 21:22:19 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 49940 for review
Message-ID:  <200403300522.i2U5MJD5089569@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=49940

Change 49940 by marcel@marcel_nfs on 2004/03/29 21:22:02

	Argh.. actually lock when KDB is not defined.
	
	Spotted by: kan

Affected files ...

.. //depot/projects/gdb/sys/i386/isa/clock.c#4 edit

Differences ...

==== //depot/projects/gdb/sys/i386/isa/clock.c#4 (text+ko) ====

@@ -405,8 +405,8 @@
 
 #ifdef KDB
 	if (!kdb_active)
+#endif
 		mtx_lock_spin(&clock_lock);
-#endif
 
 	/* Select timer0 and latch counter value. */
 	outb(TIMER_MODE, TIMER_SEL0 | TIMER_LATCH);
@@ -416,8 +416,8 @@
 
 #ifdef KDB
 	if (!kdb_active)
+#endif
 		mtx_unlock_spin(&clock_lock);
-#endif
 
 	return ((high << 8) | low);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403300522.i2U5MJD5089569>