Changeset 580 for trunk/user


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.

Location:
trunk/user
Files:
2 edited

Legend:

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

    r475 r580  
    1616{
    1717    unsigned long long  cycle;
     18    unsigned int        cxy;
     19    unsigned int        lid;
    1820
    1921    get_cycle( &cycle );
     22    get_core( &cxy , &lid );
    2023
    21     printf( "\n[IDBG] starts at cycle %d\n", (unsigned int)cycle );
     24    printf( "\n[IDBG] starts on core[%x,%d] / cycle %d\n",
     25    cxy , lid , (unsigned int)cycle );
    2226
    2327    idbg();
  • 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.