source: rtems-schedsim/schedsim/shell/shared/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: 2.8 KB
Line 
1/**
2 *  @file
3 *
4 *  BASED UPON SOURCE IN RTEMS, MODIFIED FOR SIMULATOR
5 */
6
7/*
8 *  COPYRIGHT (c) 1989-2014.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 */
15
16#ifdef HAVE_CONFIG_H
17#include "config.h"
18#endif
19
20#include "shell.h"
21#include <stdio.h>
22
23extern rtems_shell_cmd_t rtems_shell_ECHO_Command;
24extern rtems_shell_cmd_t rtems_shell_HELP_Command;
25
26extern rtems_shell_cmd_t rtems_shell_RTEMS_INIT_Command;
27extern rtems_shell_cmd_t rtems_shell_TASK_CREATE_Command;
28extern rtems_shell_cmd_t rtems_shell_TASK_DELETE_Command;
29extern rtems_shell_cmd_t rtems_shell_TASK_MODE_Command;
30extern rtems_shell_cmd_t rtems_shell_TASK_PRIORITY_Command;
31extern rtems_shell_cmd_t rtems_shell_TASK_SUSPEND_Command;
32extern rtems_shell_cmd_t rtems_shell_TASK_RESUME_Command;
33extern rtems_shell_cmd_t rtems_shell_TASK_WAKE_AFTER_Command;
34#if RTEMS_SMP
35  extern rtems_shell_cmd_t rtems_shell_TASK_GET_AFFINITY_Command;
36  extern rtems_shell_cmd_t rtems_shell_TASK_SET_AFFINITY_Command;
37  extern rtems_shell_cmd_t rtems_shell_CURRENT_CPU_Command;
38#endif
39
40extern rtems_shell_cmd_t rtems_shell_CLOCK_TICK_Command;
41
42extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_CREATE_Command;
43extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_DELETE_Command;
44extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_OBTAIN_Command;
45extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_RELEASE_Command;
46extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_FLUSH_Command;
47
48extern rtems_shell_cmd_t rtems_shell_TASK_EXECUTING_Command;
49extern rtems_shell_cmd_t rtems_shell_TASK_HEIR_Command;
50extern rtems_shell_cmd_t rtems_shell_CPUS_Command;
51
52rtems_shell_cmd_t *rtems_shell_Initial_commands[] = {
53  /* Generic Commands */
54  &rtems_shell_ECHO_Command,
55  &rtems_shell_HELP_Command,
56
57  /* RTEMS Classic API Type Commands */
58  &rtems_shell_RTEMS_INIT_Command,
59  &rtems_shell_TASK_CREATE_Command,
60  &rtems_shell_TASK_DELETE_Command,
61  &rtems_shell_TASK_MODE_Command,
62  &rtems_shell_TASK_PRIORITY_Command,
63  &rtems_shell_TASK_SUSPEND_Command,
64  &rtems_shell_TASK_RESUME_Command,
65  &rtems_shell_TASK_WAKE_AFTER_Command,
66  #if RTEMS_SMP
67    &rtems_shell_TASK_GET_AFFINITY_Command,
68    &rtems_shell_TASK_SET_AFFINITY_Command,
69    &rtems_shell_CURRENT_CPU_Command,
70  #endif
71
72  &rtems_shell_CLOCK_TICK_Command,
73
74  &rtems_shell_SEMAPHORE_CREATE_Command,
75  &rtems_shell_SEMAPHORE_DELETE_Command,
76  &rtems_shell_SEMAPHORE_OBTAIN_Command,
77  &rtems_shell_SEMAPHORE_RELEASE_Command,
78  &rtems_shell_SEMAPHORE_FLUSH_Command,
79
80  /* RTEMS Helper Commands */
81  &rtems_shell_TASK_EXECUTING_Command,
82  &rtems_shell_TASK_HEIR_Command,
83  &rtems_shell_CPUS_Command,
84  NULL
85};
86
87rtems_shell_alias_t *rtems_shell_Initial_aliases[] = {
88  NULL
89};
Note: See TracBrowser for help on using the repository browser.