Changeset f74bbaf in mainline for kernel/generic/src/console/cmd.c
- Timestamp:
- 2007-04-09T06:13:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d0b1443
- Parents:
- 261595b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
r261595b rf74bbaf 49 49 #include <adt/list.h> 50 50 #include <arch.h> 51 #include <config.h> 51 52 #include <func.h> 52 53 #include <macros.h> … … 80 81 static cmd_info_t exit_info = { 81 82 .name = "exit", 82 .description = "Exit kconsole", 83 .description = "Exit kconsole.", 84 .argc = 0 85 }; 86 87 static int cmd_reboot(cmd_arg_t *argv); 88 static cmd_info_t reboot_info = { 89 .name = "reboot", 90 .description = "Reboot.", 91 .func = cmd_reboot, 83 92 .argc = 0 84 93 }; … … 430 439 &desc_info, 431 440 &exit_info, 441 &reboot_info, 432 442 &halt_info, 433 443 &help_info, … … 505 515 } 506 516 517 518 /** Reboot the system. 519 * 520 * @param argv Argument vector. 521 * 522 * @return 0 on failure, 1 on success. 523 */ 524 int cmd_reboot(cmd_arg_t *argv) 525 { 526 reboot(); 527 528 /* Not reached */ 529 return 1; 530 } 531 507 532 /** Describe specified command. 508 533 *
Note:
See TracChangeset
for help on using the changeset viewer.