source: rtems/testsuites/sptests/spfatal_support/system.h @ b84f1fdc

4.104.115
Last change on this file since b84f1fdc was b84f1fdc, checked in by Joel Sherrill <joel.sherrill@…>, on May 10, 2009 at 2:39:46 PM

2009-05-10 Joel Sherrill <joel.sherrill@…>

  • sp04/system.h, sp04/task1.c, sp04/tswitch.c, sp07/init.c, sp12/init.c, sp13/putbuff.c, sp13/system.h, sp13/task1.c, sp15/init.c, sp16/system.h, sp19/fptask.c, sp25/system.h, sp26/task1.c, sp27/init.c, sp28/init.c, sp29/init.c, sp31/task1.c, sp33/init.c, sp34/changepri.c, sp35/priinv.c, sp37/init.c, sp38/init.c, sp39/init.c, sp41/init.c, sp42/init.c, sp43/init.c, sp44/init.c, sp45/init.c, sp46/init.c, sp47/init.c, sp48/init.c, spfatal03/testcase.h, spfatal05/testcase.h, spfatal06/testcase.h, spfatal_support/system.h, spobjgetnext/init.c, spsize/getint.c, spsize/size.c: Fix warnings.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
6 *  COPYRIGHT (c) 1989-2009.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16/*
17 *  Some of the fatal error cases require the ability to peek inside RTEMS
18 */
19#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
20#include <rtems.h>
21#include <tmacros.h>
22
23/* functions */
24
25rtems_task Init(
26  rtems_task_argument argument
27);
28
29rtems_extension Fatal_extension(
30  uint32_t   source,
31  bool       is_internal,
32  uint32_t   error
33);
34
35void Put_Error(
36  uint32_t source,
37  uint32_t error
38);
39
40void Put_Source(
41  uint32_t source
42);
43
44void force_error(void);
45
46/* need some prototypes for test cases */
47
48#include "testcase.h"
49
50/* configuration information */
51
52extern rtems_extensions_table initial_extensions;
53
54#define CONFIGURE_INITIAL_EXTENSIONS \
55  { \
56    NULL,                    /* create  */ \
57    NULL,                    /* start   */ \
58    NULL,                    /* restart */ \
59    NULL,                    /* delete  */ \
60    NULL,                    /* switch  */ \
61    NULL,                    /* begin   */ \
62    NULL,                    /* exitted */ \
63    Fatal_extension          /* fatal   */ \
64  }
65
66/* extra parameters may be in testcase.h */
67#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
68#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
69
70/* always need an Init task, some cases need more tasks */
71#ifndef SPFATAL_TEST_CASE_EXTRA_TASKS
72#define SPFATAL_TEST_CASE_EXTRA_TASKS 0
73#endif
74#define CONFIGURE_MAXIMUM_TASKS \
75  (SPFATAL_TEST_CASE_EXTRA_TASKS + 1)
76
77#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
78
79#include <rtems/confdefs.h>
80
81/* global variables */
82
83/* end of include file */
Note: See TracBrowser for help on using the repository browser.