[eros-cvs] cvs commit: eros/src/base/sys/kernel kern_Check.cxx

shap@eros.cs.jhu.edu shap@eros.cs.jhu.edu
Mon, 19 Nov 2001 23:25:38 -0500


shap        01/11/19 23:25:38

  Modified:    src/base/sys/kernel kern_Check.cxx
  Log:
  This is a truly minor tweak to get DBG_WILD_PTR to compile. Note that
  DBG_WILD_PTR no longer actually *works*, because the dynamic memory
  allocation stuff isn't adequately protected against it.

Revision  Changes    Path
1.30      +4 -2      eros/src/base/sys/kernel/kern_Check.cxx

Index: kern_Check.cxx
===================================================================
RCS file: /cvs/eros/src/base/sys/kernel/kern_Check.cxx,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- kern_Check.cxx	2001/07/25 04:50:08	1.29
+++ kern_Check.cxx	2001/11/20 04:25:38	1.30
@@ -45,13 +45,15 @@
 extern "C" {
   extern uint32_t InterruptStackLimit;
   extern uint32_t InterruptStackTop;
-  extern uint32_t TrapDepth;
 }
 
 void
 Check::DoConsistency(const char *msg)
 {
-#ifdef DBG_WILD_PTR
+  /* FIX: I'm not sure what should be replacing the TrapDepth check
+   * here. The idea is to be checking whether we are in the kernel or
+   * not. */
+#if defined(DBG_WILD_PTR) && 0
   if (TrapDepth == 0) {
     assert ( Thread::Current()->IsKernel() );