4.104.115
Last change
on this file since 4e54befe was
4e54befe,
checked in by Joel Sherrill <joel.sherrill@…>, on 02/19/09 at 18:54:00
|
2009-02-19 Joel Sherrill <joel.sherrill@…>
- libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add halt command to
shell which results in the shutting RTEMS down.
- libmisc/shell/main_halt.c: New file.
|
-
Property mode set to
100644
|
File size:
978 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Halt Command Implementation |
---|
3 | * |
---|
4 | * Author: Fernando RUIZ CASAS |
---|
5 | * Work: fernando.ruiz@ctv.es |
---|
6 | * Home: correo@fernando-ruiz.com |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.com/license/LICENSE. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #ifdef HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <stdlib.h> |
---|
20 | |
---|
21 | #include <rtems.h> |
---|
22 | #include <rtems/shell.h> |
---|
23 | #include "internal.h" |
---|
24 | |
---|
25 | int rtems_shell_main_halt( |
---|
26 | int argc __attribute__((unused)), |
---|
27 | char *argv[] __attribute__((unused)) |
---|
28 | ) |
---|
29 | { |
---|
30 | exit(0); |
---|
31 | return 0; |
---|
32 | } |
---|
33 | |
---|
34 | rtems_shell_cmd_t rtems_shell_HALT_Command = { |
---|
35 | "halt", /* name */ |
---|
36 | "halt", /* usage */ |
---|
37 | "rtems", /* topic */ |
---|
38 | rtems_shell_main_halt, /* command */ |
---|
39 | NULL, /* alias */ |
---|
40 | NULL /* next */ |
---|
41 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.