Ignore:
Timestamp:
Nov 7, 2017, 3:08:12 PM (7 years ago)
Author:
alain
Message:

First implementation of fork/exec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_thread_sleep.c

    r406 r407  
    3232    thread_t * this = CURRENT_THREAD;
    3333
    34     thread_dmsg("\n[DMSG] %s : thread %x in process %x goes to sleep at cycle %d\n",
     34    thread_dmsg("\n[DBG] %s : thread %x in process %x goes to sleep at cycle %d\n",
    3535                __FUNCTION__, this->trdid, this->process->pid, hal_get_cycles() );
    3636
    3737    thread_block( this , THREAD_BLOCKED_GLOBAL );
    38     sched_yield( NULL );
     38    sched_yield();
    3939
    40     thread_dmsg("\n[DMSG] %s : thread %x in process %x resume at cycle\n",
     40    thread_dmsg("\n[DBG] %s : thread %x in process %x resume at cycle\n",
    4141                __FUNCTION__, this->trdid, this->process->pid, hal_get_cycles() );
    4242
Note: See TracChangeset for help on using the changeset viewer.