summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxfatal_support/system.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-31 23:42:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-31 23:42:50 +0000
commit920343eed752a059396eab7a8663fcde246c0948 (patch)
treef7da5226808d719a554e0cabfb77917a5d400435 /testsuites/psxtests/psxfatal_support/system.h
parent2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-920343eed752a059396eab7a8663fcde246c0948.tar.bz2
2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: New tests. * psxfatal01/.cvsignore, psxfatal01/Makefile.am, psxfatal01/psxfatal01.scn, psxfatal01/testcase.h, psxfatal02/.cvsignore, psxfatal02/Makefile.am, psxfatal02/psxfatal02.scn, psxfatal02/testcase.h, psxfatal_support/init.c, psxfatal_support/system.h: New files.
Diffstat (limited to 'testsuites/psxtests/psxfatal_support/system.h')
-rw-r--r--testsuites/psxtests/psxfatal_support/system.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxfatal_support/system.h b/testsuites/psxtests/psxfatal_support/system.h
new file mode 100644
index 0000000000..551632a79f
--- /dev/null
+++ b/testsuites/psxtests/psxfatal_support/system.h
@@ -0,0 +1,72 @@
+/* system.h
+ *
+ * This include file contains information that is included in every
+ * function in the test set.
+ *
+ * COPYRIGHT (c) 1989-1999.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+/*
+ * Some of the fatal error cases require the ability to peek inside RTEMS
+ */
+#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
+#include <rtems.h>
+#include <tmacros.h>
+
+/* functions */
+
+void *POSIX_Init(
+ void *argument
+);
+
+rtems_extension Fatal_extension(
+ uint32_t source,
+ boolean is_internal,
+ uint32_t error
+);
+
+/* need prototypes */
+
+#include "testcase.h"
+
+/* configuration information */
+
+extern rtems_extensions_table initial_extensions;
+
+#define CONFIGURE_INITIAL_EXTENSIONS \
+ { \
+ NULL, /* create */ \
+ NULL, /* start */ \
+ NULL, /* restart */ \
+ NULL, /* delete */ \
+ NULL, /* switch */ \
+ NULL, /* begin */ \
+ NULL, /* exitted */ \
+ Fatal_extension /* fatal */ \
+ }
+
+/* extra parameters may be in testcase.h */
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+/* always need an Init task, some cases need more tasks */
+#ifndef SPFATAL_TEST_CASE_EXTRA_THREADS
+#define SPFATAL_TEST_CASE_EXTRA_THREADS 0
+#endif
+#define CONFIGURE_MAXIMUM_POSIX_THREADS \
+ (SPFATAL_TEST_CASE_EXTRA_THREADS + 1)
+
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#include <rtems/confdefs.h>
+
+/* global variables */
+
+/* end of include file */