summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/smptests.h
diff options
context:
space:
mode:
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