blob: ad1dde20d8a607514127b260d09842450e00c9f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
* COPYRIGHT (c) 1989-2013.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*/
#include <newlib/getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include "shell.h"
#include "rtems_sched.h"
extern int main_dump_ready_tasks(int argc, char **argv);
extern int main_set_current_cpu(int argc, char **argv);
extern int main_dispatch(int argc, char **argv);
void add_commands(void)
{
rtems_shell_cmd_t *cmd;
cmd = rtems_shell_add_cmd(
"ready_tasks",
"rtems",
"no args",
main_dump_ready_tasks
);
assert( cmd );
cmd = rtems_shell_add_cmd(
"current_cpu",
"rtems",
"number",
main_set_current_cpu
);
assert( cmd );
cmd = rtems_shell_add_cmd(
"dispatch",
"rtems",
"",
main_dispatch
);
assert( cmd );
}
|