Changeset 3ff2b54 in mainline for kernel/generic/src/udebug/udebug.c
- Timestamp:
- 2008-11-22T11:26:53Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7e6c9eb
- Parents:
- 6571b78
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug.c
r6571b78 r3ff2b54 70 70 71 71 ut->go_call = NULL; 72 ut->uspace_state = NULL; 72 73 ut->go = false; 73 74 ut->stoppable = true; … … 232 233 /** Upon being scheduled to run, check if the current thread should stop. 233 234 * 234 * This function is called from clock(). Preemption is enabled. 235 * interrupts are disabled, but since this is called after 236 * being scheduled-in, we can enable them, if we're careful enough 237 * not to allow arbitrary recursion or deadlock with the thread context. 235 * This function is called from clock(). 238 236 */ 239 237 void udebug_before_thread_runs(void) 240 238 { 241 ipl_t ipl;242 243 return;244 245 ipl = interrupts_enable();246 247 /* Now we're free to do whatever we need (lock mutexes, sleep, etc.) */248 249 239 /* Check if we're supposed to stop */ 250 240 udebug_stoppable_begin(); 251 241 udebug_stoppable_end(); 252 253 interrupts_restore(ipl);254 242 } 255 243
Note:
See TracChangeset
for help on using the changeset viewer.