Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/scheduler.c

    r63e27ef r1558d85  
    3939 */
    4040
    41 #include <assert.h>
    4241#include <proc/scheduler.h>
    4342#include <proc/thread.h>
     
    6564#include <print.h>
    6665#include <log.h>
     66#include <debug.h>
    6767#include <stacktrace.h>
    6868
     
    200200static thread_t *find_best_thread(void)
    201201{
    202         assert(CPU != NULL);
     202        ASSERT(CPU != NULL);
    203203       
    204204loop:
     
    225225        }
    226226
    227         assert(!CPU->idle);
     227        ASSERT(!CPU->idle);
    228228       
    229229        unsigned int i;
     
    322322        volatile ipl_t ipl;
    323323       
    324         assert(CPU != NULL);
     324        ASSERT(CPU != NULL);
    325325       
    326326        ipl = interrupts_disable();
     
    403403        as_t *old_as = AS;
    404404       
    405         assert((!THREAD) || (irq_spinlock_locked(&THREAD->lock)));
    406         assert(CPU != NULL);
    407         assert(interrupts_disabled());
     405        ASSERT((!THREAD) || (irq_spinlock_locked(&THREAD->lock)));
     406        ASSERT(CPU != NULL);
     407        ASSERT(interrupts_disabled());
    408408       
    409409        /*
Note: See TracChangeset for help on using the changeset viewer.