All pastes #721304 Raw Edit

Untitled

public diff v1 · immutable
#721304 ·published 2007-10-01 04:08 UTC
rendered paste body
# svn diffIndex: firmware/thread.c===================================================================--- firmware/thread.c   (revision 14933)+++ firmware/thread.c   (working copy)@@ -1038,6 +1038,13 @@     /* CPU will initialize first and then sleep */     slot = find_empty_thread_slot();+#if THREAD_EXTRA_CHECKS+    /* This can fail if, for example, .bss isn't zero'ed out by the loader+       or threads is in the wrong section. */+    if (slot < 0) {+        panicf("uninitialized threads[]");+    }+#endif     cores[core].sleeping = NULL;     cores[core].running = NULL;