Changeset 50 for trunk/kernel/syscalls


Ignore:
Timestamp:
Jun 26, 2017, 3:15:11 PM (7 years ago)
Author:
alain
Message:

bloup

Location:
trunk/kernel/syscalls
Files:
1 added
1 deleted
2 edited

Legend:

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

    r23 r50  
    3030int sys_thread_sleep()
    3131{
    32     thread_t * this = CURRENT_THREAD;
    33 
    3432    thread_dmsg("\n[INFO] %s : thread %x in process %x goes to sleep at cycle %d\n",
    35                 __FUNCTION__ , this->trdid , this->process->pid , hal_time_stamp() );
     33                __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_time_stamp() );
    3634
    3735    thread_block( CURRENT_THREAD , THREAD_BLOCKED_GLOBAL );
     
    3937
    4038    thread_dmsg("\n[INFO] %s : thread %x in process %x resume at cycle\n",
    41                 __FUNCTION__ , this->trdid , this->process->pid , hal_time_stamp() );
     39                __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_time_stamp() );
    4240
    4341        return 0;
  • trunk/kernel/syscalls/syscalls.h

    r23 r50  
    528528 * @ return 0 if success / returns -1 if failure.
    529529 ********************************************************************************************/
    530 int sys_gettimeofday( struct timeval  * tv,
    531                       struct timezone * tz );
     530int sys_timeofday( struct timeval  * tv,
     531                   struct timezone * tz );
    532532
    533533/*********************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.