Changeset 672 for trunk/kernel/mm/ppm.c


Ignore:
Timestamp:
Nov 19, 2020, 11:49:01 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/mm/ppm.c

    r657 r672  
    158158        page_t   * pages_tbl   = ppm->pages_tbl;
    159159
    160 assert( !page_is_flag( page , PG_FREE ) ,
     160assert( __FUNCTION__, !page_is_flag( page , PG_FREE ) ,
    161161"page already released : ppn = %x\n" , ppm_page2ppn( XPTR( local_cxy , page ) ) );
    162162
    163 assert( !page_is_flag( page , PG_RESERVED ) ,
     163assert( __FUNCTION__, !page_is_flag( page , PG_RESERVED ) ,
    164164"reserved page : ppn = %x\n" , ppm_page2ppn( XPTR( local_cxy , page ) ) );
    165165
     
    232232
    233233// check order
    234 assert( (order < CONFIG_PPM_MAX_ORDER) , "illegal order argument = %d\n" , order );
     234assert( __FUNCTION__, (order < CONFIG_PPM_MAX_ORDER) , "illegal order argument = %d\n" , order );
    235235
    236236    //build extended pointer on lock protecting remote PPM
     
    388388
    389389// check order
    390 assert( (order < CONFIG_PPM_MAX_ORDER) , "illegal order argument = %d\n" , order );
     390assert( __FUNCTION__, (order < CONFIG_PPM_MAX_ORDER) , "illegal order argument = %d\n" , order );
    391391
    392392    // get local pointer on PPM (same in all clusters)
     
    548548        remote_busylock_acquire( lock_xp );
    549549
    550 assert( !page_remote_is_flag( page_xp , PG_FREE ) ,
     550assert( __FUNCTION__, !page_remote_is_flag( page_xp , PG_FREE ) ,
    551551"page already released : ppn = %x\n" , ppm_page2ppn(XPTR( page_cxy , page_ptr ) ) );
    552552
    553 assert( !page_remote_is_flag( page_xp , PG_RESERVED ) ,
     553assert( __FUNCTION__, !page_remote_is_flag( page_xp , PG_RESERVED ) ,
    554554"reserved page : ppn = %x\n" , ppm_page2ppn(XPTR( page_cxy , page_ptr ) ) );
    555555
Note: See TracChangeset for help on using the changeset viewer.