OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [compat/] [posix/] [current/] [cdl/] [pthread.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      pthread.cdl
4
#
5
#      POSIX pthread configuration data
6
#
7
# ====================================================================
8
## ####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      nickg
43
# Contributors:   jlarmour
44
# Date:           2000-3-28
45
#
46
#####DESCRIPTIONEND####
47
#
48
# ====================================================================
49
 
50
cdl_option CYGPKG_POSIX_PTHREAD_REQUIREMENTS {
51
        display         "Generic requirements of pthread package"
52
        flavor          bool
53
        calculated      1
54
        implements      CYGINT_ISO_PTHREADTYPES
55
        implements      CYGINT_ISO_PTHREAD_IMPL
56
        requires        CYGPKG_POSIX_SCHED
57
        requires        CYGSEM_KERNEL_SCHED_TIMESLICE_ENABLE
58
        requires        CYGSEM_KERNEL_SCHED_ASR_SUPPORT
59
        requires        CYGSEM_KERNEL_SCHED_ASR_GLOBAL
60
        requires        !CYGSEM_KERNEL_SCHED_ASR_DATA_GLOBAL
61
        requires        CYGFUN_KERNEL_THREADS_STACK_LIMIT
62
        requires        { CYGBLD_ISO_PTHREADTYPES_HEADER == \
63
                          "" }
64
        requires        { CYGBLD_ISO_PTHREAD_IMPL_HEADER == \
65
                          "" }
66
        description     "This option exists merely to carry the pthread
67
                         package requirements."
68
 
69
}
70
 
71
# ====================================================================
72
 
73
cdl_component CYGPKG_POSIX_PTHREAD_VALUES {
74
    display          "Constant values used in pthread package"
75
    flavor           bool
76
    calculated       1
77
    description      "These are values that are either configurable, or derived
78
                     from system parameters."
79
 
80
    cdl_option CYGNUM_POSIX_PTHREAD_DESTRUCTOR_ITERATIONS {
81
        display          "Maximum number of iterations of key destructors"
82
        flavor           data
83
        legal_values     4 to 100
84
        default_value    4
85
        description      "Maximum number of iterations of key destructors allowed."
86
    }
87
 
88
    cdl_option CYGNUM_POSIX_PTHREAD_KEYS_MAX {
89
        display          "Maximum number of per-thread data keys allowed"
90
        flavor           data
91
        legal_values     128 to 65535
92
        default_value    128
93
        description      "Number of per-thread data keys supported."
94
    }
95
 
96
        cdl_option CYGNUM_POSIX_PTHREAD_THREADS_MAX {
97
        display          "Maximum number of threads allowed"
98
        flavor           data
99
        legal_values     64 to 1024
100
        default_value    64
101
        description      "Maximum number of threads supported."
102
    }
103
 
104
}
105
 
106
# ====================================================================
107
 
108
cdl_component CYGPKG_POSIX_PTHREAD_FEATURES {
109
        display         "Fixed Feature test macros for POSIX"
110
        flavor          bool
111
        calculated      1
112
        description     "These options define POSIX feature test macros that
113
                         describe the eCos implementation of pthreads. These
114
                         are not changeable configuration options."
115
 
116
    cdl_option _POSIX_THREADS {
117
        display         "POSIX thread support feature test macro"
118
        flavor          bool
119
        calculated      1
120
        requires        CYGSEM_KERNEL_SCHED_TIMESLICE
121
        requires        CYGVAR_KERNEL_THREADS_DATA
122
        description     "This option defines the POSIX feature test macro
123
                        for thread support."
124
    }
125
 
126
    cdl_option _POSIX_THREAD_PRIORITY_SCHEDULING {
127
        display         "POSIX thread priority scheduling feature test macro"
128
        flavor          bool
129
        calculated      1
130
        requires        CYGSEM_KERNEL_SCHED_MLQUEUE
131
        requires      _POSIX_THREADS
132
        description     "This option defines the POSIX feature test macro
133
                        for thread priority scheduling support."
134
    }
135
 
136
    cdl_option _POSIX_THREAD_ATTR_STACKADDR {
137
        display         "POSIX stack address attribute feature test macro"
138
        flavor          bool
139
        calculated      1
140
        description     "This option defines the POSIX feature test macro
141
                        for supporting the thread stack address in the thread
142
                        attribute object."
143
    }
144
 
145
    cdl_option _POSIX_THREAD_ATTR_STACKSIZE {
146
        display         "POSIX stack size attribute feature test macro"
147
        flavor          bool
148
        calculated      1
149
        description     "This option defines the POSIX feature test macro
150
                        for supporting the thread stack size in the thread
151
                        attribute object."
152
    }
153
 
154
    cdl_option _POSIX_THREAD_PROCESS_SHARED {
155
        display         "POSIX process shared attribute feature test macro"
156
        flavor          bool
157
        calculated      0
158
        description     "This option defines the POSIX feature test macro
159
                        for supporting process shared mutexes. Since eCos
160
                        does not have processes, this attribute is undefined."
161
    }
162
 
163
}
164
 
165
# ====================================================================
166
 
167
cdl_component CYGPKG_POSIX_MAIN_THREAD {
168
        display         "Main thread configuration"
169
        flavor          bool
170
        calculated      1
171
        requires        { 0 != CYGPKG_LIBC_STARTUP }
172
        requires        CYGSEM_LIBC_STARTUP_MAIN_OTHER
173
        implements      CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE
174
        description     "These options control the thread used to
175
                         run the main() application entry routine."
176
 
177
        cdl_option CYGNUM_POSIX_MAIN_DEFAULT_PRIORITY {
178
             display        "main()'s default thread priority"
179
             flavor         data
180
             legal_values   0 to 31
181
             default_value  16
182
             description    "
183
                POSIX compatibility requires that the application's
184
                main() function be invoked in a thread.
185
                This option controls the priority of that thread. This
186
                priority is the POSIX priority and is NOT the same as
187
                an eCos thread priority. With POSIX thread priorities,
188
                lower numbers are lower priority, and higher numbers are
189
                higher priority."
190
        }
191
}
192
 
193
# ====================================================================
194
# End of pthread.cdl
195
 
196
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.