Ignore:
Timestamp:
Jan 29, 2018, 5:40:34 PM (6 years ago)
Author:
alain
Message:

Introduce sys_fg() , sys_display() , sys_wait() syscalls.

File:
1 edited

Legend:

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

    r416 r421  
    170170
    171171    // get parent process pid
    172     thread_t   * this    = CURRENT_THREAD;
    173     process_t  * process = this->process;
    174     pid_t        pid     = process->pid;
     172    thread_t    * this    = CURRENT_THREAD;
     173    process_t   * process = this->process;
     174    pid_t         pid     = process->pid;
    175175
    176176#if CONFIG_SYSCALL_DEBUG
     
    178178uint64_t      tm_end;
    179179tm_start = hal_get_cycles();
    180 printk("\n[DBG] %s : core[%x,%d] enter / process %x / path = %s / cycle = %d\n",
    181 __FUNCTION__, local_cxy, this->core->lid, pid, exec_info.path, (uint32_t)tm_start );
     180printk("\n[DBG] %s : core[%x,%d] enter / process %x / cycle = %d\n",
     181__FUNCTION__, local_cxy, this->core->lid, pid, (uint32_t)tm_start );
    182182#endif
    183183
     
    251251#if CONFIG_SYSCALL_DEBUG
    252252tm_end = hal_get_cycles();
    253 printk("\n[DBG] %s : core[%x,%d] exit / process %x / path = %s / cost = %d\n",
    254 __FUNCTION__, local_cxy, this->core->lid, pid, exec_info.path, (uint32_t)(tm_end - tm_start) );
     253printk("\n[DBG] %s : core[%x,%d] exit / process %x / path = %s / cost = %d / cycle %d\n",
     254__FUNCTION__, local_cxy, this->core->lid, pid, exec_info.path,
     255(uint32_t)(tm_end - tm_start) , (uint32_t)tm_end );
    255256#endif
    256257
Note: See TracChangeset for help on using the changeset viewer.