Changeset 3ff2b54 in mainline for kernel/generic/src/udebug/udebug.c


Ignore:
Timestamp:
2008-11-22T11:26:53Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e6c9eb
Parents:
6571b78
Message:

Merge feature from tracing: correct stopping of CPU-intensive tasks in udebug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/udebug/udebug.c

    r6571b78 r3ff2b54  
    7070
    7171        ut->go_call = NULL;
     72        ut->uspace_state = NULL;
    7273        ut->go = false;
    7374        ut->stoppable = true;
     
    232233/** Upon being scheduled to run, check if the current thread should stop.
    233234 *
    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().
    238236 */
    239237void udebug_before_thread_runs(void)
    240238{
    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 
    249239        /* Check if we're supposed to stop */
    250240        udebug_stoppable_begin();
    251241        udebug_stoppable_end();
    252 
    253         interrupts_restore(ipl);
    254242}
    255243
Note: See TracChangeset for help on using the changeset viewer.