Ignore:
Timestamp:
May 16, 2018, 4:15:22 PM (4 years ago)
Author:
alain
Message:

Fix few bugs whike debugging the sort multi-thread application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libc/stdio.c

    r439 r443  
    328328}
    329329
    330 ///////////////////////////////////
    331 int display_vmm( unsigned int pid )
     330//////////////////////////////////
     331int display_vmm( unsigned int cxy,
     332                 unsigned int pid )
    332333{
    333334    return hal_user_syscall( SYS_DISPLAY,
    334335                             DISPLAY_VMM,
    335                              (reg_t)pid, 0, 0 );
    336 }
    337 
    338 ////////////////////////////////
     336                             (reg_t)cxy,
     337                             (reg_t)pid, 0 );
     338}
     339
     340////////////////////////////////////
    339341int display_sched( unsigned int cxy,
    340342                   unsigned int lid )
     
    383385}
    384386
    385 //////////////////////////////////
    386 int trace( unsigned int operation,
    387            unsigned int pid,
    388            unsigned int trdid )
     387///////////////////////////////
     388int trace( unsigned int active,
     389           unsigned int cxy,
     390           unsigned int lid )
    389391{
    390392    return hal_user_syscall( SYS_TRACE,
    391                              (reg_t)pid,
    392                              (reg_t)trdid, 0, 0 );
    393 }
    394 
    395 
     393                             (reg_t)active,
     394                             (reg_t)cxy,
     395                             (reg_t)lid, 0 );
     396}
     397
     398
Note: See TracChangeset for help on using the changeset viewer.