Changeset 657 for trunk/user/ksh/ksh.c


Ignore:
Timestamp:
Mar 18, 2020, 11:16:59 PM (4 years ago)
Author:
alain
Message:

Introduce remote_buf.c/.h & socket.c/.h files.
Update dev_nic.c/.h files.

File:
1 edited

Legend:

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

    r656 r657  
    413413               "         display  barrier  pid\n"
    414414               "         display  mapper   path     page     nbytes\n"
    415                "         display  fat      page     entries\n"
    416                "         display  fat      cxy      0\n");
     415               "         display  fat      min      nslots\n"
     416               "         display  fat      cxy      0\n" );
    417417    }
    418418    ////////////////////////////////////
     
    581581        if( argc != 4 )
    582582        {
    583                     printf("  usage: display fat page_id nb_entries\n");
     583                    printf("  usage: display fat  min_slot  nb_slots\n");
    584584            }
    585585        else
    586586        {
    587                 unsigned int page_id    = atoi(argv[2]);
    588             unsigned int nb_entries = atoi(argv[3]);
    589 
    590             if( display_fat( page_id, nb_entries ) )
     587                unsigned int min_slot = atoi(argv[2]);
     588            unsigned int nb_slots = atoi(argv[3]);
     589
     590            if( display_fat( min_slot, nb_slots ) )
    591591            {
    592                 printf("  error: cannot display page %d of fat\n", page_id );
     592                printf("  error: cannot display fat\n");
    593593            }
    594594        }
     
    12341234else
    12351235{
    1236     strcpy( cmd , "load bin/user/kleenex.elf" );
     1236    strcpy( cmd , "load bin/user/transpose.elf" );
    12371237    printf("[ksh] %s\n", cmd );
    12381238    execute( cmd );
Note: See TracChangeset for help on using the changeset viewer.