Changeset 580 for trunk/user/pgcd/pgcd.c


Ignore:
Timestamp:
Oct 8, 2018, 11:31:42 AM (6 years ago)
Author:
alain
Message:

1) Register the kernel process in the cluster manager local list.
2) Introduce a new service in idbg : display the set of busylocks taken by a given thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/pgcd/pgcd.c

    r574 r580  
    1818    int                opy;
    1919    unsigned long long cycle;
     20    unsigned int       cxy;
     21    unsigned int       lid;
    2022
    2123    get_cycle( &cycle );
    22     printf( "\n\n[PGCD] starts / cycle %d\n", (unsigned int)cycle );
     24    get_core( &cxy , &lid );
     25
     26    printf( "\n\n[PGCD] starts on core[%x,%d] / cycle %d\n",
     27    cxy , lid , (unsigned int)cycle );
    2328
    2429    while (1)
     
    2631        printf("\n*******************\n");
    2732        printf("operand X = ");
    28         opx = getint();
     33        opx = get_uint32();
    2934        printf("\n");
    3035        printf("operand Y = ");
    31         opy = getint();
     36        opy = get_uint32();
    3237        printf("\n");
    3338
Note: See TracChangeset for help on using the changeset viewer.