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

4.104.115
Last change on this file since ac85d56 was ac85d56, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 26, 2009 at 3:47:16 PM

2009-09-26 Joel Sherrill <joel.sherrill@…>

  • sp04/tswitch.c, sp07/system.h, sp07/taskexit.c, sp07/tdelete.c, sp07/tstart.c, spfatal_support/init.c, spfatal_support/system.h: Eliminate use of deprecated rtems_extension.
  • 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
29void 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.