Changeset 54b2e4b9 in rtems


Ignore:
Timestamp:
Feb 19, 2008, 7:44:21 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
70f326cf
Parents:
ba0ec285
Message:

2008-02-19 Joel Sherrill <joel.sherrill@…>

  • libmisc/Makefile.am, libmisc/shell/main_wkspaceinfo.c, libmisc/shell/shell.c, libmisc/shell/shellconfig.h: Add route and ifconfig commands. The code for these was previously in the networking guide. Disable NFS filesystem mount until that code is in cpukit.
  • libmisc/shell/main_ifconfig.c, libmisc/shell/main_route.c: New files.
Location:
cpukit
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rba0ec285 r54b2e4b9  
     12008-02-19      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libmisc/Makefile.am, libmisc/shell/main_wkspaceinfo.c,
     4        libmisc/shell/shell.c, libmisc/shell/shellconfig.h: Add route and
     5        ifconfig commands. The code for these was previously in the
     6        networking guide. Disable NFS filesystem mount until that code is in
     7        cpukit.
     8        * libmisc/shell/main_ifconfig.c, libmisc/shell/main_route.c: New files.
     9
    1102008-02-16      Ralf Corsépius <ralf.corsepius@rtems.org>
    211
  • cpukit/libmisc/Makefile.am

    rba0ec285 r54b2e4b9  
    8484    shell/fts.c shell/print_heapinfo.c shell/main_wkspaceinfo.c
    8585if LIBNETWORKING
    86 libshell_a_SOURCES += shell/main_mount_ftp.c shell/main_mount_nfs.c \
    87     shell/main_mount_tftp.c
     86libshell_a_SOURCES += shell/main_mount_ftp.c shell/main_mount_tftp.c \
     87    shell/main_ifconfig.c shell/main_route.c
     88##libshell_a_SOURCES += shell/main_mount_nfs.c
    8889endif
    8990endif
  • cpukit/libmisc/shell/main_wkspaceinfo.c

    rba0ec285 r54b2e4b9  
    2222#include <rtems/malloc.h>
    2323#include <rtems/shell.h>
     24#include <rtems/score/protectedheap.h>
    2425#include "internal.h"
    2526
     
    3233  extern void classinfo_tester();
    3334
    34   /* XXX lock allocator and do not violate visibility */
    35   _Heap_Get_information( &_Workspace_Area, &info );
     35  _Protected_heap_Get_information( &_Workspace_Area, &info );
    3636  rtems_shell_print_heap_info( "free", &info.Free );
    3737  rtems_shell_print_heap_info( "used", &info.Used );
     
    4242rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command = {
    4343  "wkspace",                                  /* name */
    44   "",                                         /* usage */
     44  "Report on RTEMS Executive Workspace",      /* usage */
    4545  "rtems",                                    /* topic */
    4646  rtems_shell_main_wkspace_info,              /* command */
  • cpukit/libmisc/shell/shell.c

    rba0ec285 r54b2e4b9  
    489489          break; /*EOF*/
    490490        }
    491 
    492491        line++;
    493492
  • cpukit/libmisc/shell/shellconfig.h

    rba0ec285 r54b2e4b9  
    5656extern rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command;
    5757extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command;
     58#if RTEMS_NETWORKING
     59  #if defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING)
     60    extern rtems_shell_cmd_t rtems_shell_IFCONFIG_Command;
     61    extern rtems_shell_cmd_t rtems_shell_ROUTE_Command;
     62  #endif
     63#endif
    5864
    5965extern rtems_shell_cmd_t *rtems_shell_Initial_commands[];
     
    303309        defined(CONFIGURE_SHELL_COMMAND_MALLOC_INFO)
    304310      &rtems_shell_MALLOC_INFO_Command,
     311    #endif
     312
     313    /*
     314     *  Network related commands
     315     */
     316    #if RTEMS_NETWORKING
     317      #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
     318           !defined(CONFIGURE_SHELL_COMMAND_IFCONFIG)) || \
     319          defined(CONFIGURE_SHELL_COMMAND_IFCONFIG)
     320        &rtems_shell_IFCONFIG_Command,
     321      #endif
     322
     323      #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
     324           !defined(CONFIGURE_SHELL_COMMAND_ROUTE)) || \
     325          defined(CONFIGURE_SHELL_COMMAND_ROUTE)
     326        &rtems_shell_ROUTE_Command,
     327      #endif
    305328    #endif
    306329
Note: See TracChangeset for help on using the changeset viewer.