summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/smptests.h
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-08-31 03:17:48 +0000
committerfsmp <fsmp@FreeBSD.org>1997-08-31 03:17:48 +0000
commit53cd3a6e283516523cbdacf36340687e233d6ba8 (patch)
tree9e1ad83a6fdf24736bad3da3ddafb94f85346735 /sys/i386/include/smptests.h
parent92287f9b58f359eb2a68d5c728235f5ffd89c1cd (diff)
downloadFreeBSD-src-53cd3a6e283516523cbdacf36340687e233d6ba8.zip
FreeBSD-src-53cd3a6e283516523cbdacf36340687e233d6ba8.tar.gz
Debug version of simple_lock. This will store the CPU id of the
holding CPU along with the lock. When a CPU fails to get the lock it compares its own id to the holder id. If they are the same it panic()s, as simple locks are binary, and this would cause a deadlock. Controlled by smptests.h: SL_DEBUG, ON by default. Some minor cleanup.
Diffstat (limited to 'sys/i386/include/smptests.h')
-rw-r--r--sys/i386/include/smptests.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/i386/include/smptests.h b/sys/i386/include/smptests.h
index c93cefd..3cfc27b 100644
--- a/sys/i386/include/smptests.h
+++ b/sys/i386/include/smptests.h
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: smptests.h,v 1.22 1997/08/29 17:58:30 fsmp Exp $
+ * $Id: smptests.h,v 1.27 1997/08/31 03:02:19 smp Exp smp $
*/
#ifndef _MACHINE_SMPTESTS_H_
@@ -35,6 +35,16 @@
/*
+ * Debug version of simple_lock. This will store the CPU id of the
+ * holding CPU along with the lock. When a CPU fails to get the lock
+ * it compares its own id to the holder id. If they are the same it
+ * panic()s, as simple locks are binary, and this would cause a deadlock.
+ *
+ */
+#define SL_DEBUG
+
+
+/*
* Put FAST_INTR() ISRs at an APIC priority above the regular INTs.
* Allow the mp_lock() routines to handle FAST interrupts while spinning.
*/
@@ -59,6 +69,10 @@
#define SIMPLE_MPINTRLOCK
+/* */
+#define USE_COMLOCK
+
+
/*
* Regular INTerrupts without the giant lock, NOT READY YET!!!
*
OpenPOWER on IntegriCloud