Ignore:
Timestamp:
Nov 19, 2020, 11:45:52 PM (18 months 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_place_fork.c

    r637 r670  
    3838{
    3939    thread_t  * this    = CURRENT_THREAD;
    40     process_t * process = this->process;
    4140
    42 #if (DEBUG_SYS_PLACE_FORK || CONFIG_INSTRUMENTATION_SYSCALLS)
    43 uint64_t     tm_start = hal_get_cycles();
     41#if DEBUG_SYS_PLACE_FORK || DEBUG_SYSCALLS_ERROR || CONFIG_INSTRUMENTATION_SYSCALLS
     42uint64_t    tm_start = hal_get_cycles();
     43process_t * process  = this->process;
    4444#endif
    4545
     
    5555       
    5656#if DEBUG_SYSCALLS_ERROR
     57if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start );
    5758printk("\n[ERROR] in %s : thread[%x,‰x] / illegal cxy argument %x\n",
    5859__FUNCTION__ , process->pid , this->trdid , cxy );
Note: See TracChangeset for help on using the changeset viewer.