Ignore:
Timestamp:
Jul 27, 2015, 8:40:45 PM (9 years ago)
Author:
alain
Message:

Introduce support for the "shared" argument in the giet_tty_alloc() system call,
and replace the giet_shr_printf() system call by giet_tty_printf().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/coproc/main.c

    r589 r669  
    3434    giet_proc_xyp( &x, &y, &lpid );
    3535
    36     giet_shr_printf("\n*** Starting coproc application on processor"
     36    // get a private TTY terminal
     37    giet_tty_alloc( 0 );
     38
     39    giet_tty_printf("\n*** Starting coproc application on processor"
    3740                    "[%d,%d,%d] at cycle %d\n",
    3841                    x, y, lpid, giet_proctime() );
     
    6366
    6467if ( VERBOSE )
    65 giet_shr_printf("\n*** get GCD coprocessor at cycle %d\n", giet_proctime() );
     68giet_tty_printf("\n*** get GCD coprocessor at cycle %d\n", giet_proctime() );
    6669
    6770    //////////////////////// initializes channel for OPA
     
    8790   
    8891if ( VERBOSE )
    89 giet_shr_printf("\n*** channels initialized at cycle %d\n", giet_proctime() );
     92giet_tty_printf("\n*** channels initialized at cycle %d\n", giet_proctime() );
    9093
    9194    /////////////////////// starts communication channels
     
    9396
    9497if ( VERBOSE )
    95 giet_shr_printf("\n*** start GCD coprocessor at cycle %d\n", giet_proctime() );
     98giet_tty_printf("\n*** start GCD coprocessor at cycle %d\n", giet_proctime() );
    9699
    97100    /////////////////////// wait coprocessor completion
     
    102105
    103106if ( VERBOSE )
    104 giet_shr_printf("\n*** GCD computation completed at cycle %d\n", giet_proctime() );
     107giet_tty_printf("\n*** GCD computation completed at cycle %d\n", giet_proctime() );
    105108
    106109    // display result
    107110    for ( word = 0 ; word < VECTOR_SIZE ; word++ )
    108111    {
    109         giet_shr_printf("pgcd( %d , %d ) = %d\n",
     112        giet_tty_printf("pgcd( %d , %d ) = %d\n",
    110113        opa[word] , opb[word] , res[word] );
    111114    }
Note: See TracChangeset for help on using the changeset viewer.