Subversion Repositories HelenOS-historic

Rev

Rev 788 | Rev 1060 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 788 Rev 1053
Line 291... Line 291...
291
    .func = cmd_zone,
291
    .func = cmd_zone,
292
    .argc = 1,
292
    .argc = 1,
293
    .argv = &zone_argv
293
    .argv = &zone_argv
294
};
294
};
295
 
295
 
-
 
296
static int cmd_hello(cmd_arg_t *argv);
-
 
297
static cmd_info_t hello_info = {
-
 
298
    .name = "hello",
-
 
299
    .description = "Hello Message",
-
 
300
    .func = cmd_hello,
-
 
301
    .argc = 0
-
 
302
};
-
 
303
 
296
/** Data and methods for 'cpus' command. */
304
/** Data and methods for 'cpus' command. */
297
static int cmd_cpus(cmd_arg_t *argv);
305
static int cmd_cpus(cmd_arg_t *argv);
298
cmd_info_t cpus_info = {
306
cmd_info_t cpus_info = {
299
    .name = "cpus",
307
    .name = "cpus",
300
    .description = "List all processors.",
308
    .description = "List all processors.",
Line 332... Line 340...
332
    &threads_info,
340
    &threads_info,
333
    &tlb_info,
341
    &tlb_info,
334
    &version_info,
342
    &version_info,
335
    &zones_info,
343
    &zones_info,
336
    &zone_info,
344
    &zone_info,
-
 
345
    &hello_info,
337
    NULL
346
    NULL
338
};
347
};
339
 
348
 
340
 
349
 
341
/** Initialize command info structure.
350
/** Initialize command info structure.
Line 673... Line 682...
673
int cmd_version(cmd_arg_t *argv)
682
int cmd_version(cmd_arg_t *argv)
674
{
683
{
675
    version_print();
684
    version_print();
676
    return 1;
685
    return 1;
677
}
686
}
-
 
687
 
-
 
688
 
-
 
689
int cmd_hello(cmd_arg_t *argv)
-
 
690
{
-
 
691
    printf("\nHello, World !!!\n");
-
 
692
    return 1;
-
 
693
}