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

4.115
Last change on this file since ae75429 was ae75429, checked in by Sebastian Huber <sebastian.huber@…>, on Aug 6, 2013 at 2:10:26 PM

PR766: Delete RTEMS_VIOLATE_KERNEL_VISIBILITY

  • Property mode set to 100644
File size: 2.1 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
14/*
15 *  Some of the fatal error cases require the ability to peek inside RTEMS
16 */
17#include <rtems.h>
18#include <tmacros.h>
19
20/* functions */
21
22rtems_task Init(
23  rtems_task_argument argument
24);
25
26void Fatal_extension(
27  rtems_fatal_source source,
28  bool               is_internal,
29  rtems_fatal_code   error
30);
31
32void Put_Error(
33  uint32_t source,
34  uint32_t error
35);
36
37void Put_Source( rtems_fatal_source source );
38
39void force_error(void);
40
41/* need some prototypes for test cases */
42
43rtems_device_driver consume_semaphores_initialize(
44  rtems_device_major_number major __attribute__((unused)),
45  rtems_device_minor_number minor __attribute__((unused)),
46  void *pargp __attribute__((unused))
47);
48
49#define CONSUME_SEMAPHORE_DRIVERS \
50  { consume_semaphores_initialize, NULL, NULL, NULL, NULL, NULL }
51
52#include "testcase.h"
53
54/* configuration information */
55
56extern rtems_extensions_table initial_extensions;
57
58#define CONFIGURE_INITIAL_EXTENSIONS \
59  { \
60    NULL,                    /* create  */ \
61    NULL,                    /* start   */ \
62    NULL,                    /* restart */ \
63    NULL,                    /* delete  */ \
64    NULL,                    /* switch  */ \
65    NULL,                    /* begin   */ \
66    NULL,                    /* exitted */ \
67    Fatal_extension          /* fatal   */ \
68  }
69
70/* extra parameters may be in testcase.h */
71#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
72#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
73
74/* always need an Init task, some cases need more tasks */
75#ifndef SPFATAL_TEST_CASE_EXTRA_TASKS
76#define SPFATAL_TEST_CASE_EXTRA_TASKS 0
77#endif
78#define CONFIGURE_MAXIMUM_TASKS \
79  (SPFATAL_TEST_CASE_EXTRA_TASKS + 1)
80
81#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
82
83#include <rtems/confdefs.h>
84
85/* global variables */
86
87/* end of include file */
Note: See TracBrowser for help on using the repository browser.