Ignore:
Timestamp:
Nov 1, 2018, 12:13:45 PM (5 years ago)
Author:
alain
Message:

Introduce sys_place_fork() function.

File:
1 edited

Legend:

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

    r566 r584  
    7171tm_start = hal_get_cycles();
    7272if( DEBUG_SYS_WRITE < tm_start )
    73 printk("\n[DBG] %s : thread %x in process %x enter / vaddr %x / count %d / cycle %d\n",
    74 __FUNCTION__, this->trdid, process->pid, vaddr, count, (uint32_t)tm_start );
     73printk("\n[DBG] %s : thread[%x,%x] enter / vaddr %x / count %d / cycle %d\n",
     74__FUNCTION__, process->pid, this->trdid, vaddr, count, (uint32_t)tm_start );
    7575#endif
    7676 
     
    8484
    8585#if DEBUG_SYSCALLS_ERROR
    86 printk("\n[ERROR] in %s : illegal file descriptor index\n", __FUNCTION__ );
     86printk("\n[ERROR] in %s : thread[%x,%x] illegal file descriptor index %d\n",
     87__FUNCTION__, process->pid, this->trdid, file_id );
    8788#endif
    8889        this->errno = EBADFD;
     
    9798
    9899#if DEBUG_SYSCALLS_ERROR
    99 printk("\n[ERROR] in %s : user buffer unmapped %x / thread %x / process %x\n",
    100 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid );
     100printk("\n[ERROR] in %s : thread[%x,%x] user buffer unmapped %x\n",
     101__FUNCTION__ , process->pid, this->trdid, (intptr_t)vaddr );
    101102vmm_display( process , false );
    102103#endif
     
    112113
    113114#if DEBUG_SYSCALLS_ERROR
    114 printk("\n[ERROR] in %s : undefined file descriptor index = %d in process %x\n",
    115 __FUNCTION__ , file_id , process->pid );
     115printk("\n[ERROR] in %s : thread[%x,%x] undefined file descriptor index = %d\n",
     116__FUNCTION__, process->pid, this->trdid, file_id );
    116117#endif
    117118                this->errno = EBADFD;
     
    139140
    140141#if DEBUG_SYSCALLS_ERROR
    141 printk("\n[ERROR] in %s : file %d not writable in process %x\n",
    142 __FUNCTION__ , file_id , process->pid );
     142printk("\n[ERROR] in %s : thread[%x,%x] file %d not writable\n",
     143__FUNCTION__ , process->pid, this->trdid, file_id );
    143144#endif
    144145                    this->errno = EBADFD;
     
    159160
    160161#if DEBUG_SYSCALLS_ERROR
    161 printk("\n[ERROR] in %s : user buffer size %x too large / thread %x / process %x\n",
    162 __FUNCTION__ , count, this->trdid, process->pid );
     162printk("\n[ERROR] in %s : thread[%x,%x] user buffer size %x too large\n",
     163__FUNCTION__ , process->pid, this->trdid, count );
    163164#endif
    164165                    this->errno = EINVAL;
     
    182183
    183184#if DEBUG_SYSCALLS_ERROR
    184 printk("\n[ERROR] in %s cannot write data to file %d in process %x\n",
    185 __FUNCTION__ , file_id , process->pid );
     185printk("\n[ERROR] in %s : thread[%x,‰x] cannot write data to file %d\n",
     186__FUNCTION__ , process->pid, this->trdid, file_id );
    186187#endif
    187188        this->errno = error;
     
    200201#if DEBUG_SYS_WRITE
    201202if( DEBUG_SYS_WRITE < tm_end )
    202 printk("\n[DBG] %s : thread %x in process %x exit / cycle %d\n",
    203 __FUNCTION__, this->trdid, process->pid, (uint32_t)tm_end );
     203printk("\n[DBG] %s : thread[%x,%x] exit / cycle %d\n",
     204__FUNCTION__, process->pid, this->trdid, (uint32_t)tm_end );
    204205#endif
    205206 
Note: See TracChangeset for help on using the changeset viewer.