Index: kernel/generic/src/udebug/udebug.c
===================================================================
--- kernel/generic/src/udebug/udebug.c	(revision 32e6c9c63d4fb7060344d129538b1356d34ea9dd)
+++ kernel/generic/src/udebug/udebug.c	(revision 3ff2b5474db5d13ba2132c533593a7bcdbf4126a)
@@ -70,4 +70,5 @@
 
 	ut->go_call = NULL;
+	ut->uspace_state = NULL;
 	ut->go = false;
 	ut->stoppable = true;
@@ -232,24 +233,11 @@
 /** Upon being scheduled to run, check if the current thread should stop.
  *
- * This function is called from clock(). Preemption is enabled.
- * interrupts are disabled, but since this is called after
- * being scheduled-in, we can enable them, if we're careful enough
- * not to allow arbitrary recursion or deadlock with the thread context.
+ * This function is called from clock().
  */
 void udebug_before_thread_runs(void)
 {
-	ipl_t ipl;
-
-	return;
-
-	ipl = interrupts_enable();
-
-	/* Now we're free to do whatever we need (lock mutexes, sleep, etc.) */
-
 	/* Check if we're supposed to stop */
 	udebug_stoppable_begin();
 	udebug_stoppable_end();
-
-	interrupts_restore(ipl);
 }
 
