source: rtems-schedsim/schedsim/shell/schedsim_smpsimple/add_commands.c @ e340e96

Last change on this file since e340e96 was e340e96, checked in by Joel Sherrill <joel.sherrill@…>, on May 26, 2014 at 5:46:20 PM

current_cpu is now a shared SMP command

  • Property mode set to 100644
File size: 817 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2013.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 */
9
10#include <newlib/getopt.h>
11#include <stdio.h>
12#include <stdlib.h>
13#include <string.h>
14#include <ctype.h>
15#include <assert.h>
16
17#include "shell.h"
18#include "rtems_sched.h"
19
20extern int main_dump_ready_tasks(int argc, char **argv);
21extern int main_dispatch(int argc, char **argv);
22
23void add_commands(void)
24{
25  rtems_shell_cmd_t *cmd;
26
27  cmd = rtems_shell_add_cmd(
28    "ready_tasks",
29    "rtems",
30    "no args",
31    main_dump_ready_tasks
32  );
33  assert( cmd );
34
35  cmd = rtems_shell_add_cmd(
36    "dispatch",
37    "rtems",
38    "",
39    main_dispatch
40  );
41  assert( cmd );
42
43}
Note: See TracBrowser for help on using the repository browser.