Changeset a645637 in rtems


Ignore:
Timestamp:
Apr 17, 2008, 10:46:15 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
8ae91559
Parents:
e31f420f
Message:

2008-04-17 Joel Sherrill <joel.sherrill@…>

  • fileio/init.c, hello/system.h, minimum/init.c, unlimited/system.h: Use CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER where needed.
Location:
testsuites/samples
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/ChangeLog

    re31f420f ra645637  
     12008-04-17      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * fileio/init.c, hello/system.h, minimum/init.c, unlimited/system.h:
     4        Use CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER where needed.
     5
    162008-02-28      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/samples/fileio/init.c

    re31f420f ra645637  
    100100#include <rtems/shell.h>
    101101
     102void writeScript(
     103  const char *name,
     104  const char *contents
     105)
     106{
     107  int sc;
     108  sc = setuid(0);
     109  if ( sc ) {
     110    printf( "setuid failed: %s:\n", name, strerror(errno) );
     111  }
     112
     113  rtems_shell_write_file( name, contents );
     114  sc = chmod ( name, 0777 );
     115  if ( sc ) {
     116    printf( "chmod %s: %s:\n", name, strerror(errno) );
     117  }
     118}
     119
    102120void fileio_start_shell(void)
    103121{
     122  int sc;
     123  sc = mkdir("/scripts", 0777);
     124  if ( sc ) {
     125    printf( "mkdir /scripts: %s:\n", strerror(errno) );
     126  }
     127
     128  writeScript(
     129    "/scripts/js",
     130    "#! joel\n"
     131    "\n"
     132    "date\n"
     133    "echo Script successfully ran\n"
     134    "date\n"
     135    "stackuse\n"
     136  );
     137
     138  writeScript(
     139    "/scripts/j1",
     140    "#! joel -s 20480 -t JESS\n"
     141    "stackuse\n"
     142  );
     143
     144  rtems_shell_write_file(
     145    "/scripts/j2",
     146    "echo j2 TEST FILE\n"
     147    "echo j2   SHOULD BE non-executable AND\n"
     148    "echo j2   DOES NOT have the magic first line\n"
     149  );
     150
    104151  printf(" =========================\n");
    105152  printf(" starting shell\n");
    106153  printf(" =========================\n");
    107154  rtems_shell_init("SHLL",RTEMS_MINIMUM_STACK_SIZE * 4,100,"/dev/console",
    108                    0, 0);
     155                   0, 1);
    109156  rtems_task_suspend(RTEMS_SELF);
    110157}
  • testsuites/samples/hello/system.h

    re31f420f ra645637  
    2626#include <bsp.h> /* for device driver prototypes */
    2727
     28/* NOTICE: the clock driver is explicitly disabled */
     29#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    2830#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    2931
  • testsuites/samples/minimum/init.c

    re31f420f ra645637  
    2424#define CONFIGURE_MAXIMUM_TASKS 1
    2525
     26/* NOTICE: the clock driver is explicitly disabled */
     27#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
     28
    2629/*
    2730 *  This is the smallest IO subsystem RTEMS currently supports.
  • testsuites/samples/unlimited/system.h

    re31f420f ra645637  
    4343#include <bsp.h> /* for device driver prototypes */
    4444
     45/* NOTICE: the clock driver is explicitly disabled */
     46#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    4547#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    4648
Note: See TracChangeset for help on using the changeset viewer.