source: rtems/c/src/tests/sptests/threaditerate/system.h @ 310a2ec

4.104.114.84.95
Last change on this file since 310a2ec was 41ab6966, checked in by Joel Sherrill <joel.sherrill@…>, on 06/12/00 at 20:06:59

Patch from John Cotton <john.cotton@…>, Charles-Antoine Gauthier
<charles.gauthier@…>, and Darlene A. Stewart
<Darlene.Stewart@…> to add support for a number of very
significant things:

+ BSPs for many variations on the Motorola MBX8xx board series
+ Cache Manager including initial support for m68040

and PowerPC

+ Rework of mpc8xx libcpu code so all mpc8xx CPUs now use

same code base.

+ Rework of eth_comm BSP to utiltize above.

John reports this works on the 821 and 860

  • 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-1999.
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.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16/* RTEMS API */
17
18#include <rtems/system.h>
19#include <rtems/score/object.h>
20#include <rtems/score/stack.h>
21#include <rtems/score/states.h>
22#include <rtems/score/thread.h>
23
24unsigned32 print_thread_info( Thread_Control *thread, void * arg );
25
26#include <tmacros.h>
27
28/* functions */
29
30rtems_task Init( rtems_task_argument argument );
31rtems_task RTEMS_task_1_through_3( rtems_task_argument argument );
32
33/* global variables */
34
35TEST_EXTERN rtems_id   Task_id[ 4 ];         /* array of task ids */
36TEST_EXTERN rtems_name Task_name[ 4 ];       /* array of task names */
37
38/* configuration information */
39
40#define CONFIGURE_SPTEST
41
42#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
43#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
44
45#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
46
47#define CONFIGURE_EXTRA_TASK_STACKS         (4 * RTEMS_MINIMUM_STACK_SIZE)
48
49
50
51/* POSIX API */
52
53#ifdef RTEMS_POSIX_API
54
55#include <pmacros.h>
56#include <unistd.h>
57#include <errno.h>
58#include <sched.h>
59
60/* functions */
61
62void *pthread_1_through_3( void *argument );
63
64/* global variables */
65
66TEST_EXTERN pthread_t pthread_id[3];        /* array of pthread ids */
67
68/* configuration information */
69
70#define CONFIGURE_MAXIMUM_POSIX_THREADS     3
71
72#endif
73
74
75
76/* ITRON API */
77
78#ifdef RTEMS_ITRON_API
79
80#include <itron.h>
81#include <rtems/itron/task.h>
82
83/* functions */
84
85void ITRON_task_2_through_4( void );
86
87/* global variables */
88
89TEST_EXTERN Objects_Locations location;
90
91
92/* configuration information */
93
94#endif
95
96#include <confdefs.h>
97
98/* end of include file */
Note: See TracBrowser for help on using the repository browser.