source: rtems/testsuites/samples/minimum/init.c @ 2156876

4.104.114.95
Last change on this file since 2156876 was 2156876, checked in by Joel Sherrill <joel.sherrill@…>, on 06/13/08 at 15:08:40

2008-06-13 Joel Sherrill <joel.sherrill@…>

  • minimum/init.c: Exerise new ability for application to configure minimum stack size. This test still runs the same with a 7.5K stack on the powerpc but reserves 15K less Workspace on the PowerPC.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*  Minimum Size Application Initialization
2 *
3 *  COPYRIGHT (c) 1989-2008.
4 *  On-Line Applications Research Corporation (OAR).
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.rtems.com/license/LICENSE.
9 *
10 *  $Id$
11 */
12
13#include <bsp.h>
14
15rtems_task Init(
16  rtems_task_argument ignored
17)
18{
19}
20
21/* configuration information */
22
23#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
24#define CONFIGURE_MAXIMUM_TASKS 1
25
26/* NOTICE: the clock driver is explicitly disabled */
27#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
28
29/*
30 *  This is the smallest IO subsystem RTEMS currently supports.
31 */
32#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
33
34/*
35 *  This disables reentrancy support in the C Library.  It is usually
36 *  not something an application wants to do unless the development
37 *  team is committed to using C Library routines that are KNOWN to
38 *  be reentrant.  Caveat Emptor!!
39 */
40#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY
41
42/*
43 *  This test does not need the console driver so there is no reason
44 *  to configure termios.
45 */
46#define CONFIGURE_TERMIOS_DISABLED
47
48/*
49 *  This test does not use any stdio.
50 */
51#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 0
52
53/*
54 *  This may prevent us from running on every architecture but it
55 *  demonstrates that the user can specify how small of a minimum
56 *  stack they want.
57 */
58#define CONFIGURE_MINIMUM_TASK_STACK_SIZE 512
59
60#define CONFIGURE_INIT
61
62#include <rtems/confdefs.h>
63
64/* global variables */
Note: See TracBrowser for help on using the repository browser.