Ignore:
Timestamp:
Nov 19, 2020, 11:45:52 PM (4 years ago)
Author:
alain
Message:

1) Introduce up to 4 command lines arguments in the KSH "load" command.
These arguments are transfered to the user process through the
argc/argv mechanism, using the user space "args" vseg.

2) Introduce the named and anonymous "pipes", for inter-process communication
through the pipe() and mkfifo() syscalls.

3) Introduce the "chat" application to validate the two above mechanisms.

4) Improve printk() and assert() fonctions in printk.c.

File:
1 edited

Legend:

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

    r637 r670  
    4646    process_t * process = this->process;
    4747
    48 #if (DEBUG_SYS_CHDIR || CONFIG_INSTRUMENTATION_SYSCALLS)
     48#if DEBUG_SYS_CHDIR || DEBUG_SYSCALLS_ERROR || CONFIG_INSTRUMENTATION_SYSCALLS
    4949uint64_t     tm_start = hal_get_cycles();
    5050#endif
     
    5555
    5656#if DEBUG_SYSCALLS_ERROR
     57if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start )
    5758printk("\n[ERROR] in %s : pathname too long / thread[%x,%x]\n",
    5859__FUNCTION__, process->pid, this->trdid );
     
    6768
    6869#if DEBUG_SYSCALLS_ERROR
     70if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start )
    6971printk("\n[ERROR] in %s : user buffer unmapped %x for thread[%x,%x]\n",
    7072__FUNCTION__ , (intptr_t)pathname , process->pid, this->trdid );
     
    8082
    8183#if DEBUG_SYS_CHDIR
    82 if( DEBUG_SYS_CHDIR < tm_start )
     84if( DEBUG_SYS_CHDIR < (uint32_t)tm_start )
    8385printk("\n[%s] thread[%x,%x] enter for <%s> / cycle %d\n",
    8486__FUNCTION__, process->pid, this->trdid, kbuf, (uint32_t)tm_start );
     
    109111
    110112#if DEBUG_SYSCALLS_ERROR
     113if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start )
    111114printk("\n[ERROR] in %s / thread[%x,%x] : cannot change CWD\n",
    112115__FUNCTION__ , process->pid , this->trdid );
Note: See TracChangeset for help on using the changeset viewer.