Changeset 626 for trunk/user/ksh
- Timestamp:
- Apr 29, 2019, 7:25:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/ksh/ksh.c
r625 r626 15 15 // The children processes are created by the <load> command, and are 16 16 // attached to the same TXT terminal as the parent KSH process. 17 // A child process can be lau ched in foreground or in background:17 // A child process can be launched in foreground or in background: 18 18 // . when the child process is launched in foreground, the KSH process loses 19 19 // the TXT terminal ownership, that is transfered to the child process. … … 391 391 if( argc < 2 ) 392 392 { 393 printf(" usage: display vmm cxy pid\n"394 " display sched cxy lid\n"393 printf(" usage: display vmm cxy pid\n" 394 " display sched cxy lid\n" 395 395 " display process cxy\n" 396 396 " display txt txtid\n" … … 398 398 " display chdev\n" 399 399 " display dqdt\n" 400 " display locks pid trdid\n"400 " display locks pid trdid\n" 401 401 " display barrier pid\n" 402 " display mapper path page_id nbytes\n"); 402 " display mapper path page nbytes\n" 403 " display fat page entries\n" 404 " display fat cxy 0\n"); 403 405 } 404 406 //////////////////////////////////// … … 558 560 { 559 561 printf(" error: cannot display page %d of mapper %s\n", page_id, argv[2] ); 562 } 563 } 564 } 565 /////////////////////////////////////////// 566 else if( strcmp( argv[1] , "fat" ) == 0 ) 567 { 568 if( argc != 4 ) 569 { 570 printf(" usage: display fat page_id nb_entries\n"); 571 } 572 else 573 { 574 unsigned int page_id = atoi(argv[2]); 575 unsigned int nb_entries = atoi(argv[3]); 576 577 if( display_fat( page_id, nb_entries ) ) 578 { 579 printf(" error: cannot display page %d of fat\n", page_id ); 560 580 } 561 581 } … … 1141 1161 } // end execute() 1142 1162 1163 1164 1143 1165 /////////////////////////////// 1144 1166 static void interactive( void ) … … 1156 1178 #endif 1157 1179 1158 /* 1159 // To lauch one or several commands without interactive mode1180 /* 1181 // Lauch one or several commands without interactive mode 1160 1182 1161 1183 // 1. first command … … 1167 1189 else 1168 1190 { 1169 printf("\n[ksh] load bin/user/pgcd.elf\n");1191 printf("\n[ksh] display fat 0 32\n"); 1170 1192 } 1171 1193 1172 strcpy( cmd , " load bin/user/pgcd.elf" );1194 strcpy( cmd , "display fat 0 32" ); 1173 1195 execute( cmd ); 1174 1196 … … 1181 1203 else 1182 1204 { 1183 printf("\n[ksh] l s home\n");1205 printf("\n[ksh] load bin/user/pgcd.elf\n"); 1184 1206 } 1185 1207 1186 strcpy( cmd , "l s home" );1208 strcpy( cmd , "load bin/user/pgcd.elf" ); 1187 1209 execute( cmd ); 1188 1210
Note: See TracChangeset
for help on using the changeset viewer.