annotate packages/kernel/current/include/pkgconf/kernel.h @ 2:443894e2e912 ecos-v1_2_1-release

Block commit of eCos version 1.2.1
author jlarmour
date Tue, 11 May 1999 12:24:34 +0000
parents 3111d98ba7b3
children d376b777e2ce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1 #ifndef CYGONCE_PKGCONF_KERNEL_H
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
2 #define CYGONCE_PKGCONF_KERNEL_H
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
3 // ====================================================================
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
4 //
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
5 // pkgconf/kernel.h
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
6 //
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
7 // Kernel configuration file
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
8 //
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
9 // ====================================================================
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
10 //####COPYRIGHTBEGIN####
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
11 //
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
12 // -------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
13 // The contents of this file are subject to the Cygnus eCos Public License
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
14 // Version 1.0 (the "License"); you may not use this file except in
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
15 // compliance with the License. You may obtain a copy of the License at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
16 // http://sourceware.cygnus.com/ecos
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
17 //
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
18 // Software distributed under the License is distributed on an "AS IS"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
19 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
20 // License for the specific language governing rights and limitations under
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
21 // the License.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
22 //
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
23 // The Original Code is eCos - Embedded Cygnus Operating System, released
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
24 // September 30, 1998.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
25 //
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
26 // The Initial Developer of the Original Code is Cygnus. Portions created
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
27 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved.
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
28 // -------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
29 //
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
30 //####COPYRIGHTEND####
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
31 // ====================================================================
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
32 //#####DESCRIPTIONBEGIN####
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
33 //
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
34 // Author(s): nickg
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
35 // Contributors: nickg
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
36 // Date: 1997-09-29
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
37 // Purpose: To allow the user to edit kernel configuration options.
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
38 // Description:
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
39 //
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
40 //####DESCRIPTIONEND####
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
41 //
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
42 // ====================================================================
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
43
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
44 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
45 * Some of the kernel configuration options depend on global options,
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
46 * so it is necessary to include the global options first.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
47 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
48
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
49 #include <pkgconf/system.h>
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
50
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
51 /* Only define options if the kernel is to be present */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
52 #ifdef CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
53
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
54 #include <pkgconf/hal.h>
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
55 #include <pkgconf/infra.h>
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
56
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
57 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
58 * The overall package definition.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
59
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
60 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
61
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
62 cdl_package CYGPKG_KERNEL {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
63 display "eCos kernel"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
64 type boolean
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
65 requires CYGFUN_HAL_COMMON_KERNEL_SUPPORT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
66 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
67 This package contains the core functionality of the eCos
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
68 kernel. It relies on functionality provided by various HAL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
69 packages and by the eCos infrastructure. In turn the eCos
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
70 kernel provides support for other packages such as the device
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
71 drivers and the uITRON compatibility layer."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
72 doc ref/ecos-ref/ecos-kernel-overview.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
73 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
74
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
75 }}CFG_DATA */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
76
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
77 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
78 * The first component within the kernel is related to interrupt
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
79 * handling.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
80 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
81
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
82 cdl_component CYGPKG_KERNEL_INTERRUPTS {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
83 display "Kernel interrupt handling"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
84 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
85 type dummy
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
86 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
87 The majority of configuration options related to interrupt
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
88 handling are in the HAL packages, since usually the code has
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
89 to be platform-specific. There are a number of options
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
90 provided within the kernel related to slightly higher-level
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
91 concepts, for example Delayed Service Routines."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
92 doc ref/ecos-ref/interrupts.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
93 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
94
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
95 # In the absence of active-if support this has to be
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
96 # a sub-component. It does not use the CYGPKG_ prefix to make
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
97 # it easier to change back into an ordinary option later on.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
98 cdl_component CYGIMP_KERNEL_INTERRUPTS_DSRS {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
99 display "Use delayed service routines (DSRs)"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
100 parent CYGPKG_KERNEL_INTERRUPTS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
101 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
102 In eCos the recommended way to handle device interrupts is to
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
103 do a minimum amount of work inside the low level interrupt
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
104 handler itself, and instead do as much as possible in a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
105 Delayed Service Routine or DSR. If an application does not
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
106 make use of DSRs directly or indirectly then it is possible
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
107 to disable the DSR support completely, which reduces the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
108 overheads of context switches and interrupt handling. Note
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
109 that the kernel real-time clock makes use of DSRs, as do many
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
110 of the device drivers. "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
111 doc ref/ecos-ref/interrupt-and-exception-handlers.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
112 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
113
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
114 # NOTE: the choice of list vs table should not be two separate
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
115 # options. There is a single option which must have one of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
116 # two legal values.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
117 cdl_option CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
118 display "Use linked lists for DSRs"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
119 parent CYGIMP_KERNEL_INTERRUPTS_DSRS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
120 type radio
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
121 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
122 When DSR support is enabled the kernel must keep track of all
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
123 the DSRs that are pending. This information can be kept in a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
124 fixed-size table or in a linked list. The list implementation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
125 requires that the kernel disable interrupts for a very short
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
126 period of time outside interrupt handlers, but there is no
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
127 possibility of a table overflow occurring."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
128 doc ref/ecos-ref/interrupts.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
129 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
130
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
131 cdl_option CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
132 display "Use fixed-size table for DSRs"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
133 parent CYGIMP_KERNEL_INTERRUPTS_DSRS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
134 type radio
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
135 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
136 When DSR support is enabled the kernel must keep track of all
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
137 the DSRs that are pending. This information can be kept in a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
138 fixed-size table or in a linked list. The table
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
139 implementation involves a very small risk of overflow at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
140 run-time if a given interrupt source is able to have more
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
141 than one pending DSR. However it has the advantage that
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
142 the kernel does not need to disable interrupts outside
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
143 interrupt handlers."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
144 doc ref/ecos-ref/interrupts.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
145 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
146
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
147 cdl_option CYGNUM_KERNEL_INTERRUPTS_DSRS_TABLE_SIZE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
148 display "Number of entries in fixed-size DSR table"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
149 parent CYGIMP_KERNEL_INTERRUPTS_DSRS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
150 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
151 legal_values 2 to 1024
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
152 #active_if CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
153 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
154 When DSR support is enabled the kernel must keep track of all
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
155 the DSRs that are pending. One approach involves a fixed-size
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
156 table, which involves a very small risk of overflow at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
157 run-time. By increasing the table size it is possible to reduce
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
158 this risk."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
159 doc ref/ecos-ref/interrupts.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
160 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
161
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
162 cdl_option CYGIMP_KERNEL_INTERRUPTS_CHAIN {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
163 display "Chain all interrupts together"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
164 parent CYGPKG_KERNEL_INTERRUPTS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
165 requires CYGIMP_HAL_COMMON_INTERRUPTS_CHAIN
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
166 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
167 Interrupts can be attached to vectors either singly, or be
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
168 chained together. The latter is necessary if there is no way
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
169 of discovering which device has interrupted without
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
170 inspecting the device itself. It can also reduce the amount
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
171 of RAM needed for interrupt decoding tables and code."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
172 doc ref/ecos-ref/interrupts.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
173 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
174
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
175 }}CFG_DATA */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
176
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
177 #define CYGIMP_KERNEL_INTERRUPTS_DSRS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
178 #define CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
179 #undef CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
180 #define CYGNUM_KERNEL_INTERRUPTS_DSRS_TABLE_SIZE 32
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
181 #undef CYGIMP_KERNEL_INTERRUPTS_CHAIN
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
182
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
183 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
184 * Exceptions. Currently there are only two options. The first
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
185 * determines whether or not exceptions are enabled at all. The
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
186 * second controls whether they apply globally or on a per-thread
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
187 * basis. There should probably be more options, but the boundary
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
188 * between the HAL and kernel becomes blurred.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
189
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
190 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
191
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
192 cdl_component CYGPKG_KERNEL_EXCEPTIONS {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
193 display "Exception handling"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
194 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
195 requires CYGPKG_HAL_EXCEPTIONS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
196 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
197 In the context of the eCos kernel exceptions are unexpected
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
198 events detected by the hardware, for example an attempt to
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
199 execute an illegal instruction. There is no relation with
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
200 other forms of exception, for example the catch and throw
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
201 facilities of languages like C++. It is possible to disable
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
202 all support for exceptions and thus save some memory."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
203 doc ref/ecos-ref/exceptions.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
204 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
205
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
206 cdl_option CYGSEM_KERNEL_EXCEPTIONS_DECODE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
207 display "Decode exception types in kernel"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
208 parent CYGPKG_KERNEL_EXCEPTIONS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
209 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
210 On targets where several different types of exception are
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
211 possible, for example executing an illegal instruction and
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
212 division by zero, it is possible for the kernel to do some
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
213 decoding of the exception type and deliver the different
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
214 types of exception to different handlers in the application
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
215 code. Alternatively the kernel can simply pass all
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
216 exceptions directly to application code, leaving the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
217 decoding to be done by the application"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
218 doc ref/ecos-ref/exceptions.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
219 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
220
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
221 cdl_option CYGSEM_KERNEL_EXCEPTIONS_GLOBAL {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
222 display "Use global exception handlers"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
223 parent CYGPKG_KERNEL_EXCEPTIONS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
224 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
225 In the context of the eCos kernel exceptions are unexpected
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
226 events detected by the hardware, for example an attempt to
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
227 execute an illegal instruction. If the kernel is configured
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
228 to support exceptions then two implementations are
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
229 possible. The default implementation involves a single set
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
230 of exception handlers that are in use for the entire
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
231 system. The alternative implementation allows different
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
232 exception handlers to be specified for each thread."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
233 doc ref/ecos-ref/exceptions.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
234 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
235
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
236 }}CFG_DATA */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
237
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
238 #define CYGPKG_KERNEL_EXCEPTIONS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
239 #undef CYGSEM_KERNEL_EXCEPTIONS_DECODE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
240 #define CYGSEM_KERNEL_EXCEPTIONS_GLOBAL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
241
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
242
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
243 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
244 * {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
245
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
246 cdl_component CYGPKG_KERNEL_SCHED {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
247 display "Kernel schedulers"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
248 type dummy
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
249 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
250 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
251 The eCos kernel provides a choice of schedulers. In addition
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
252 there are a number of configuration options to control the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
253 detailed behaviour of these schedulers.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
254 "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
255 doc ref/ecos-ref/ecos-kernel-overview.html#THE-SCHEDULER
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
256 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
257
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
258 cdl_option CYGSEM_KERNEL_SCHED_MLQUEUE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
259 display "Multi-level queue scheduler"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
260 type radio
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
261 parent CYGPKG_KERNEL_SCHED
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
262 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
263 The multi-level queue scheduler supports multiple priority
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
264 levels and multiple threads at each priority level.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
265 Preemption between priority levels is automatic. Timeslicing
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
266 within a given priority level is controlled by a separate
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
267 configuration option"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
268 doc ref/ecos-ref/ecos-kernel-overview.html#THE-SCHEDULER
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
269 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
270
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
271 cdl_option CYGSEM_KERNEL_SCHED_BITMAP {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
272 display "Bitmap scheduler"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
273 type radio
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
274 parent CYGPKG_KERNEL_SCHED
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
275 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
276 The bitmap scheduler supports multiple priority levels but
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
277 only one thread can exist at each priority level. This means
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
278 that scheduling decisions are very simple and hence the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
279 scheduler is efficient. Preemption between priority levels is
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
280 automatic. Timeslicing within a given priority level is
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
281 irrelevant since there can be only one thread at each
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
282 priority level."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
283 doc ref/ecos-ref/ecos-kernel-overview.html#THE-SCHEDULER
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
284 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
285
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
286 #cdl_option CYGSEM_KERNEL_SCHED_LOTTERY {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
287 # display "Lottery scheduler"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
288 # type radio
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
289 # parent CYGPKG_KERNEL_SCHED
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
290 # description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
291 # This scheduler is not yet available."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
292 #}
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
293
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
294 # NOTE: this option only makes sense if the current scheduler
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
295 # supports multiple priority levels.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
296 cdl_option CYGNUM_KERNEL_SCHED_PRIORITIES {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
297 display "Number of priority levels"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
298 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
299 legal_values 1 to 32
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
300 parent CYGPKG_KERNEL_SCHED
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
301 #active_if CYGINT_KERNEL_SCHED_PRIORITY_SCHEDULER
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
302 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
303 This option controls the number of priority levels that are
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
304 available. For some types of scheduler including the bitmap
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
305 scheduler this may impose an upper bound on the number of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
306 threads in the system. For other schedulers such as the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
307 mlqueue scheduler the number of threads is independent from
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
308 the number of priority levels. Note that the lowest priority
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
309 level is normally used only by the idle thread, although
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
310 application threads can run at this priority if necessary."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
311 doc ref/ecos-ref/ecos-kernel-overview.html#THE-SCHEDULER
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
312 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
313
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
314 # NOTE: this option only makes sense for some of the schedulers.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
315 # Timeslicing is irrelevant for bitmap schedulers.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
316 cdl_option CYGSEM_KERNEL_SCHED_TIMESLICE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
317 display "Scheduler timeslicing"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
318 parent CYGPKG_KERNEL_SCHED
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
319 requires !CYGSEM_KERNEL_SCHED_BITMAP
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
320 requires CYGVAR_KERNEL_COUNTERS_CLOCK
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
321 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
322 Some schedulers including the mlqueue scheduler support
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
323 timeslicing. This means that the kernel will check regularly
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
324 whether or not there is another runnable thread with the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
325 same priority, and if there is such a thread there will be
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
326 an automatic context switch. Not all applications require
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
327 timeslicing, for example because every thread performs a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
328 blocking operation regularly. For these applications it is
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
329 possible to disable timeslicing, which reduces the overheads
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
330 associated with timer interrupts."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
331 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
332
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
333 cdl_option CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
334 display "Number of clock ticks between timeslices"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
335 parent CYGPKG_KERNEL_SCHED
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
336 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
337 legal_values 1 to 65535
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
338 #active_if CYGSEM_KERNEL_SCHED_TIMESLICE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
339 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
340 Assuming timeslicing is enabled, how frequently should it
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
341 take place? The value of this option corresponds to the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
342 number of clock ticks that should occur before a timeslice
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
343 takes place, so increasing the value reduces the frequency
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
344 of timeslices."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
345 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
346
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
347 }}CFG_DATA */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
348
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
349 #define CYGSEM_KERNEL_SCHED_MLQUEUE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
350 #undef CYGSEM_KERNEL_SCHED_BITMAP
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
351 #undef CYGSEM_KERNEL_SCHED_LOTTERY
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
352 #define CYGNUM_KERNEL_SCHED_PRIORITIES 32
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
353 #define CYGSEM_KERNEL_SCHED_TIMESLICE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
354 #define CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS 5
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
355
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
356 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
357 * Counters and clocks.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
358
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
359 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
360
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
361 cdl_component CYGPKG_KERNEL_COUNTERS {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
362 display "Counters and clocks"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
363 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
364 type dummy
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
365 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
366 The counter objects provided by the kernel provide an
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
367 abstraction of the clock facility that is generally provided.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
368 Application code can associate alarms with counters, where an
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
369 alarm is identified by the number of ticks until it triggers,
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
370 the action to be taken on triggering, and whether or not the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
371 alarm should be repeated."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
372 doc ref/ecos-ref/counters-clocks-and-alarms.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
373 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
374
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
375 cdl_option CYGVAR_KERNEL_COUNTERS_CLOCK {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
376 display "Provide real-time clock"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
377 parent CYGPKG_KERNEL_COUNTERS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
378 requires CYGIMP_KERNEL_INTERRUPTS_DSRS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
379 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
380 On all current target systems the kernel can provide a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
381 real-time clock. This clock serves two purposes. First it is
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
382 necessary to support clock and alarm related functions.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
383 Second it is needed to implement timeslicing in some of the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
384 schedulers including the mlqueue scheduler. If the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
385 application does not require any of these facilities then it
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
386 is possible to disable the real time clock support
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
387 completely."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
388 doc ref/ecos-ref/counters-clocks-and-alarms.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
389 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
390
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
391 cdl_component CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
392 display "Override default clock settings"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
393 parent CYGPKG_KERNEL_COUNTERS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
394 requires CYGVAR_KERNEL_COUNTERS_CLOCK
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
395 type bool
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
396 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
397 The kernel has default settings for the clock interrupt
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
398 frequency. These settings will vary from platform to
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
399 platform, but typically there will be a 100 clock interrupts
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
400 every second. It is possible to change this frequency, but
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
401 it requires some knowledge of the target hardware.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
402 "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
403 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
404
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
405 cdl_option CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_PERIOD {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
406 display "Clock hardware initialization value"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
407 parent CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
408 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
409 legal_values 1 to 0x7fffffff
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
410 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
411 During system initialization this value is used to initialize
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
412 the clock hardware. The exact meaning of the value and the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
413 range of legal values therefore depends on the target hardware,
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
414 and the hardware documentation should be consulted for further
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
415 details. In addition the clock resolution numerator and
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
416 denominator values should be updated. Typical values for
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
417 this option would be 150000 on the MN10300 stdeval1 board,
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
418 15625 on the tx39 jmr3904 board, and 20833 on the powerpc
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
419 cogent board."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
420 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
421
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
422 cdl_option CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_NUMERATOR {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
423 display "Clock resolution numerator"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
424 parent CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
425 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
426 legal_values 1 to 0x7fffffff
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
427 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
428 If a non-default clock interrupt frequency is used then it
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
429 is necessary to specify the clock resolution explicitly.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
430 This resolution involves two separate values, the numerator
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
431 and the denominator. The result of dividing the numerator by
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
432 the denominator should correspond to the number of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
433 nanoseconds between clock interrupts. For example a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
434 numerator of 1000000000 and a denominator of 100 means that
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
435 there are 10000000 nanoseconds (or 10 milliseconds) between
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
436 clock interrupts. Expressing the resolution as a fraction
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
437 should minimize clock drift even for frequencies that cannot
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
438 be expressed as a simple integer. For example a frequency of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
439 60Hz corresponds to a clock resolution of 16666666.66...
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
440 nanoseconds. This can be expressed accurately as 1000000000
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
441 over 60."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
442 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
443
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
444 cdl_option CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_DENOMINATOR {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
445 display "Clock resolution denominator"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
446 parent CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
447 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
448 legal_values 1 to 0x7fffffff
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
449 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
450 If a non-default clock interrupt frequency is used then it
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
451 is necessary to specify the clock resolution explicitly.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
452 This resolution involves two separate values, the numerator
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
453 and the denominator. The result of dividing the numerator by
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
454 the denominator should correspond to the number of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
455 nanoseconds between clock interrupts. For example a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
456 numerator of 1000000000 and a denominator of 100 means that
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
457 there are 10000000 nanoseconds (or 10 milliseconds) between
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
458 clock interrupts. Expressing the resolution as a fraction
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
459 should minimize clock drift even for frequencies that cannot
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
460 be expressed as a simple integer. For example a frequency of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
461 60Hz corresponds to a clock resolution of 16666666.66...
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
462 nanoseconds. This can be expressed accurately as 1000000000
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
463 over 60."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
464 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
465
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
466
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
467 # NOTE: these option should really be a single enum.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
468 cdl_option CYGIMP_KERNEL_COUNTERS_SINGLE_LIST {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
469 display "Implement counters using a single list"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
470 parent CYGPKG_KERNEL_COUNTERS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
471 type radio
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
472 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
473 There are two different implementations of the counter
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
474 objects. The first implementation stores all alarms in a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
475 single linked list. The alternative implementation uses a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
476 table of linked lists. A single list is more efficient in
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
477 terms of memory usage and is generally adequate when the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
478 application only makes use of a small number of alarms."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
479 doc ref/ecos-ref/counters-clocks-and-alarms.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
480 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
481
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
482 cdl_option CYGIMP_KERNEL_COUNTERS_MULTI_LIST {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
483 display "Implement counters using a table of lists"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
484 parent CYGPKG_KERNEL_COUNTERS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
485 type radio
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
486 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
487 There are two different implementations of the counter
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
488 objects. The first implementation stores all alarms in a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
489 single linked list. The alternative implementation uses a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
490 table of linked lists, with the size of the table being a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
491 separate configurable option. For more complicated
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
492 operations it is better to have a table of lists since this
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
493 reduces the amount of computation whenever the timer goes
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
494 off. Assuming a table size of 8 (the default value) on
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
495 average the timer code will only need to check 1/8 of the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
496 pending alarms instead of all of them."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
497 doc ref/ecos-ref/counters-clocks-and-alarms.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
498 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
499
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
500 cdl_option CYGNUM_KERNEL_COUNTERS_MULTI_LIST_SIZE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
501 display "Size of counter list table"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
502 parent CYGPKG_KERNEL_COUNTERS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
503 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
504 legal_values 1 to 1024
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
505 #active_if CYGIMP_KERNEL_COUNTERS_MULTI_LIST
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
506 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
507 If counters are implemented using an array of linked lists
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
508 then this option controls the size of the array. A larger
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
509 size reduces the amount of computation that needs to take
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
510 place whenever the timer goes off, but requires extra
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
511 memory."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
512 doc ref/ecos-ref/counters-clocks-and-alarms.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
513 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
514
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
515 cdl_option CYGIMP_KERNEL_COUNTERS_SORT_LIST {
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
516 display "Sort the counter list"
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
517 parent CYGPKG_KERNEL_COUNTERS
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
518 type bool
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
519 description "
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
520 Sorting the counter lists reduces the amount of work that
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
521 has to be done when a counter tick is processed, since the
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
522 next alarm to expire is always at the front of the list.
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
523 However, it makes adding an alarm to the list more expensive
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
524 since a search must be done for the correct place to put it.
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
525 Many alarms are used to implement timeouts, which seldom trigger,
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
526 so it is worthwhile optimizing this case. For this reason
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
527 sorted list are disabled by default."
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
528 }
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
529
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
530 cdl_option CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY {
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
531 display "Measure real-time [clock] interrupt latency"
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
532 parent CYGPKG_KERNEL_COUNTERS
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
533 requires CYGVAR_KERNEL_COUNTERS_CLOCK
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
534 description "
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
535 Measure the interrupt latency as seen by the real-time clock
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
536 timer interrupt. This requires hardware support, defined by
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
537 the HAL_CLOCK_LATENCY() macro."
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
538 doc ref/ecos-ref/counters-clocks-and-alarms.html
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
539 }
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
540
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
541 }}CFG_DATA */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
542
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
543 #define CYGVAR_KERNEL_COUNTERS_CLOCK
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
544 #undef CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
545 #define CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_PERIOD 9999
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
546 #define CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_NUMERATOR 1000000000
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
547 #define CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_DENOMINATOR 100
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
548 #define CYGIMP_KERNEL_COUNTERS_SINGLE_LIST
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
549 #undef CYGIMP_KERNEL_COUNTERS_MULTI_LIST
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
550 #define CYGNUM_KERNEL_COUNTERS_MULTI_LIST_SIZE 8
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
551 #undef CYGIMP_KERNEL_COUNTERS_SORT_LIST
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
552 #undef CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
553
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
554 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
555 * Thread-related options
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
556 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
557
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
558 cdl_component CYGPKG_KERNEL_THREADS {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
559 display "Thread-related options"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
560 type dummy
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
561 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
562 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
563 There are a number of configuration options related to the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
564 implementation of threads, for example whether or not the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
565 eCos kernel supports per-thread data."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
566 doc ref/ecos-ref/thread-operations.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
567 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
568
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
569 cdl_option CYGFUN_KERNEL_THREADS_TIMER {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
570 display "Allow per-thread timers"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
571 parent CYGPKG_KERNEL_THREADS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
572 requires CYGVAR_KERNEL_COUNTERS_CLOCK
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
573 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
574 This option controls whether or not the kernel should support
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
575 per-thread clock and alarm related functions. Also some of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
576 the synchronization primitives such as semaphore and
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
577 condition variable timed wait operations require per-thread
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
578 timer support. If none of these facilities are required then
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
579 the option can be disabled."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
580 doc ref/ecos-ref/thread-operations.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
581 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
582
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
583 cdl_option CYGVAR_KERNEL_THREADS_NAME {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
584 display "Support optional name for each thread"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
585 parent CYGPKG_KERNEL_THREADS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
586 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
587 Threads may optionally be supplied with a name string that is
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
588 used to identify them during debugging. This name is only
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
589 present if `this option is defined. Disabling it reduces both
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
590 code and data size."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
591 doc ref/ecos-ref/thread-operations.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
592 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
593
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
594 cdl_option CYGVAR_KERNEL_THREADS_LIST {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
595 display "Keep track of all threads using a linked list"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
596 parent CYGPKG_KERNEL_THREADS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
597 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
598 Threads may optionally be placed on a housekeeping list so
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
599 that all threads may be located easily. This is useful mainly
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
600 in conjunction with source-level debugging."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
601 doc ref/ecos-ref/thread-operations.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
602 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
603
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
604 cdl_option CYGFUN_KERNEL_THREADS_STACK_LIMIT {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
605 display "Keep track of the base of each thread's stack"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
606 parent CYGPKG_KERNEL_THREADS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
607 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
608 This option makes the kernel keep track of the lower limit on
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
609 each thread's stack. It allows the kernel to adjust the lower
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
610 limit, thus making space for per-thread data. Note that it
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
611 does not imply any form of run-time stack overflow checking."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
612 doc ref/ecos-ref/thread-operations.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
613 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
614
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
615 cdl_option CYGVAR_KERNEL_THREADS_DATA {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
616 display "Support for per-thread data"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
617 parent CYGPKG_KERNEL_THREADS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
618 requires CYGFUN_KERNEL_THREADS_STACK_LIMIT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
619 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
620 It is possible for the kernel to support per-thread data, in
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
621 other words an area of memory specific to each thread which
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
622 can be used to store data for that thread. This per-thread
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
623 data can be used by applications or by other packages such as
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
624 the ISO C library."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
625 doc ref/ecos-ref/thread-operations.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
626 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
627
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
628 cdl_option CYGNUM_KERNEL_THREADS_DATA_MAX {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
629 display "Number of words of per-thread data"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
630 parent CYGPKG_KERNEL_THREADS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
631 #active_if CYGVAR_KERNEL_THREADS_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
632 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
633 legal_values 1 to 65535
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
634 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
635 It is possible for the kernel to support per-thread data, in
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
636 other words an area of memory specific to each thread which
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
637 can be used to store data for that thread. This per-thread
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
638 data can be used by applications or by other packages such as
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
639 the ISO C library. This configuration option controls the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
640 number of words of per-thread data that the kernel will
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
641 allow."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
642 doc ref/ecos-ref/thread-operations.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
643 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
644
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
645 cdl_option CYGNUM_KERNEL_THREADS_IDLE_STACK_SIZE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
646 display "Stack size for the idle thread"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
647 parent CYGPKG_KERNEL_THREADS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
648 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
649 legal_values 512 to 65536
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
650 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
651 This configuration option specifies the stack size in bytes
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
652 for the idle thread. Unless the HAL is configured to use a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
653 separate interrupt stack this size must be sufficient to meet
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
654 the requirements of all interrupt handlers - these
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
655 requirements are cumulative if nested interrupted are
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
656 enabled. Depending on the target architecture, the stack size
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
657 typically has to be a multiple of eight or sixteen bytes.
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
658 This will be overridden where it is used if the
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
659 architectural HAL requires a minimum stack size
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
660 to handle interrupts correctly."
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
661
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
662 doc ref/ecos-ref/thread-operations.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
663 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
664
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
665 }}CFG_DATA */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
666
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
667 #define CYGFUN_KERNEL_THREADS_TIMER
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
668 #define CYGVAR_KERNEL_THREADS_NAME
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
669 #define CYGVAR_KERNEL_THREADS_LIST
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
670 #define CYGFUN_KERNEL_THREADS_STACK_LIMIT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
671 #define CYGVAR_KERNEL_THREADS_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
672 #define CYGNUM_KERNEL_THREADS_DATA_MAX 6
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
673 #define CYGNUM_KERNEL_THREADS_IDLE_STACK_SIZE 2048
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
674
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
675
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
676 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
677 * Synchronization primitives.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
678
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
679 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
680
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
681 cdl_component CYGPKG_KERNEL_SYNCH {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
682 display "Synchronization primitives"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
683 type dummy
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
684 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
685 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
686 The eCos kernel supports a number of different
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
687 synchronization primitives such as mutexes, semaphores,
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
688 condition variables, and message boxes. There are
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
689 configuration options to control the exact behaviour of some
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
690 of these synchronization primitives.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
691 "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
692 doc ref/ecos-ref/thread-synchronization.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
693 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
694
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
695 # NOTE: the requires statement is only valid for the current kernel.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
696 # Priority inheritance is possible in other schedulers as well
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
697 # but is not yet implemented.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
698 cdl_option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE_SIMPLE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
699 display "Simple mutex priority inheritance"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
700 requires CYGSEM_KERNEL_SCHED_MLQUEUE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
701 parent CYGPKG_KERNEL_SYNCH
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
702 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
703 This option enables a relatively simple implementation of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
704 mutex priority inheritance. The implementation will only work
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
705 in the mlqueue scheduler, and it does not handle the rare
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
706 case of nested mutexes completely correctly. However it is
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
707 both fast and deterministic. Mutex priority inheritance can
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
708 be disabled if the application does not require it, which
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
709 will reduce both code size and data space."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
710 doc ref/ecos-ref/synchronization.html#MUTEXES
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
711 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
712
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
713 cdl_option CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
714 display "Message box blocking put support"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
715 parent CYGPKG_KERNEL_SYNCH
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
716 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
717 Message boxes can support three different versions of the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
718 put-message operation. The first is tryput(), which will fail
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
719 if the message box is already full. The other two are the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
720 ordinary put() function which will block if the message box
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
721 is full, and a timed put() operation which will block for
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
722 upto a certain length of time if the message box is currently
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
723 full. The blocking versions require extra memory in the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
724 message box data structure and extra code in the other
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
725 message box functions, so they can be disabled if the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
726 application does not require them. If this option is enabled
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
727 then the system will always provide the blocking put()
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
728 function, and it will also provide the timed put() function
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
729 if thread timers are enabled."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
730 doc ref/ecos-ref/message-boxes.html
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
731 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
732
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
733 cdl_option CYGNUM_KERNEL_SYNCH_MBOX_QUEUE_SIZE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
734 display "Message box queue size"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
735 parent CYGPKG_KERNEL_SYNCH
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
736 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
737 legal_values 1 to 65535
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
738 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
739 This configuration option controls the number of messages
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
740 that can be queued in a message box before a non-blocking
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
741 put() operation will fail or a blocking put() operation will
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
742 block. The cost in memory is one pointer per message box for
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
743 each possible message."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
744 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
745
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
746 cdl_option CYGMFN_KERNEL_SYNCH_CONDVAR_TIMED_WAIT {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
747 display "Condition variable timed-wait support"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
748 parent CYGPKG_KERNEL_SYNCH
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
749 requires CYGFUN_KERNEL_THREADS_TIMER
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
750 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
751 This option enables the condition variable timed wait
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
752 facility."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
753 doc ref/ecos-ref/synchronization.html#CONDITION-VARIABLES
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
754 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
755
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
756 }}CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
757
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
758 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
759
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
760 #define CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE_SIMPLE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
761 #define CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
762 #define CYGNUM_KERNEL_SYNCH_MBOX_QUEUE_SIZE 10
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
763 #define CYGMFN_KERNEL_SYNCH_CONDVAR_TIMED_WAIT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
764
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
765 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
766 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
767
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
768 cdl_component CYGPKG_KERNEL_INSTRUMENT {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
769 display "Kernel instrumentation"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
770 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
771 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
772 The current release of the kernel contains an initial version
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
773 of instrumentation support. The various parts of the kernel
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
774 will invoke instrumentation routines whenever appropriate
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
775 events occur, and these will be stored in a circular buffer
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
776 for later reference."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
777 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
778
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
779
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
780 cdl_option CYGNUM_KERNEL_INSTRUMENT_BUFFER_SIZE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
781 display "Size of instrumentation buffer size"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
782 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
783 type count
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
784 legal_values 16 to 0x100000
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
785 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
786 If kernel instrumentation is enabled then the instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
787 data goes into a circular buffer. A larger buffer allows
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
788 more data to be stored, but at a significant cost in memory.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
789 The value of this option corresponds to the number of entries
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
790 in the table, and typically each entry will require 16 bytes
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
791 of memory."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
792 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
793
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
794 cdl_option CYGDBG_KERNEL_INSTRUMENT_FLAGS {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
795 display "Perform selective instrumentation"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
796 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
797 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
798 The kernel can either collect all instrumentation events, or
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
799 it can filter out events at runtime based on a set of flags.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
800 For example it would be possible to decide at runtime that
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
801 only scheduler and interrupt instrumentation flags are of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
802 interest and that all other flags should be ignored. This
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
803 flag mechanism involves extra code and processor cycle
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
804 overhead in the instrumentation code, so it can be disabled
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
805 if the application developer is interested in all
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
806 instrumentation events."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
807 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
808
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
809 # NOTE: many of these options should only be active if the appropriate
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
810 # component is active.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
811 cdl_option CYGDBG_KERNEL_INSTRUMENT_SCHED {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
812 display "Instrument the scheduler"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
813 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
814 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
815 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
816 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
817 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
818 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
819 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
820 the scheduling code."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
821 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
822
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
823 cdl_option CYGDBG_KERNEL_INSTRUMENT_THREAD {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
824 display "Instrument thread operations"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
825 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
826 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
827 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
828 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
829 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
830 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
831 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
832 the code that manipulates threads."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
833 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
834
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
835 cdl_option CYGDBG_KERNEL_INSTRUMENT_INTR {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
836 display "Instrument interrupts"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
837 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
838 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
839 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
840 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
841 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
842 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
843 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
844 the interrupt handling code."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
845 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
846
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
847 cdl_option CYGDBG_KERNEL_INSTRUMENT_MUTEX {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
848 display "Instrument mutex operations"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
849 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
850 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
851 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
852 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
853 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
854 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
855 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
856 the mutex code."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
857 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
858
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
859 cdl_option CYGDBG_KERNEL_INSTRUMENT_CONDVAR {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
860 display "Instrument condition variable operations"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
861 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
862 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
863 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
864 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
865 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
866 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
867 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
868 the condition variable code."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
869 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
870
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
871 cdl_option CYGDBG_KERNEL_INSTRUMENT_BINSEM {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
872 display "Instrument binary semaphore operations"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
873 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
874 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
875 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
876 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
877 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
878 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
879 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
880 the binary semaphore code."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
881 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
882
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
883 cdl_option CYGDBG_KERNEL_INSTRUMENT_CNTSEM {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
884 display "Instrument counting semaphore operations"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
885 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
886 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
887 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
888 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
889 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
890 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
891 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
892 the counting semaphore code."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
893 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
894
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
895 cdl_option CYGDBG_KERNEL_INSTRUMENT_MBOXT {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
896 display "Instrument message box operations"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
897 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
898 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
899 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
900 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
901 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
902 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
903 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
904 the message box code."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
905 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
906
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
907 cdl_option CYGDBG_KERNEL_INSTRUMENT_CLOCK {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
908 display "Instrument clock operations"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
909 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
910 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
911 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
912 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
913 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
914 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
915 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
916 the real-time clock code."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
917 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
918
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
919 cdl_option CYGDBG_KERNEL_INSTRUMENT_ALARM {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
920 display "Instrument alarm-related operations"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
921 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
922 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
923 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
924 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
925 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
926 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
927 whether or not instrumentation support is compiled into
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
928 the code related to alarm operations."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
929 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
930
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
931 cdl_option CYGDBG_KERNEL_INSTRUMENT_USER {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
932 display "Support application-level instrumentation"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
933 parent CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
934 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
935 It is possible to perform selective instrumentation at
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
936 run-time. It is also possible to disable instrumentation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
937 in various kernel components at compile-time, thus
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
938 reducing the code size overheads. This option controls
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
939 whether or not application-level instrumentation gets
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
940 compiled in."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
941 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
942
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
943 }}CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
944 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
945
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
946 #undef CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
947 #undef CYGVAR_KERNEL_INSTRUMENT_EXTERNAL_BUFFER
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
948 #define CYGNUM_KERNEL_INSTRUMENT_BUFFER_SIZE 256
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
949 #define CYGDBG_KERNEL_INSTRUMENT_FLAGS
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
950 #define CYGDBG_KERNEL_INSTRUMENT_SCHED
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
951 #define CYGDBG_KERNEL_INSTRUMENT_THREAD
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
952 #define CYGDBG_KERNEL_INSTRUMENT_INTR
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
953 #define CYGDBG_KERNEL_INSTRUMENT_MUTEX
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
954 #define CYGDBG_KERNEL_INSTRUMENT_CONDVAR
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
955 #define CYGDBG_KERNEL_INSTRUMENT_BINSEM
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
956 #define CYGDBG_KERNEL_INSTRUMENT_CNTSEM
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
957 #define CYGDBG_KERNEL_INSTRUMENT_CLOCK
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
958 #define CYGDBG_KERNEL_INSTRUMENT_ALARM
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
959 #define CYGDBG_KERNEL_INSTRUMENT_MBOXT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
960 #define CYGDBG_KERNEL_INSTRUMENT_USER
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
961
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
962 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
963 * There appears to be somewhat of a lack of configuration options here.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
964 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
965
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
966 cdl_component CYGPKG_KERNEL_MEMORY {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
967 display "Memory allocators"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
968 type dummy
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
969 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
970 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
971 Configuration options related to the kernel memory allocation
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
972 support."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
973 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
974
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
975 cdl_option CYGSEM_KERNEL_MEMORY_COALESCE {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
976 display "Coalesce memory in the variable-block allocator"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
977 parent CYGPKG_KERNEL_MEMORY
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
978 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
979 The variable-block memory allocator can perform coalescing
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
980 of memory whenever the application code releases memory back
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
981 to the pool. This coalescing reduces the possibility of
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
982 memory fragmentation problems, but involves extra code and
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
983 processor cycles."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
984 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
985
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
986 }}CFG_DATA */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
987
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
988 #define CYGSEM_KERNEL_MEMORY_COALESCE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
989
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
990 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
991 * Options related to source-level debugging and diagnostics.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
992
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
993 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
994
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
995 cdl_component CYGPKG_KERNEL_DEBUG {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
996 display "Source-level debugging support"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
997 type dummy
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
998 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
999 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1000 If the source level debugger gdb is to be used for debugging
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1001 application code then it may be necessary to configure in support
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1002 for this in the kernel."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1003 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1004
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1005 # NOTE: does this require any other support ?
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1006 cdl_option CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1007 display "Include GDB multi-threading debug support"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1008 parent CYGPKG_KERNEL_DEBUG
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1009 requires CYGVAR_KERNEL_THREADS_LIST
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1010 requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1011 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1012 This option enables some extra kernel code which is needed
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1013 to support multi-threaded source level debugging."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1014 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1015
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1016 }}CFG_DATA */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1017
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1018 #define CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1019
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1020 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1021 * Kernel API's. The C++ one is the default. A C API is optional.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1022 * Support for other languages is possible.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1023
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1024 {{CFG_DATA
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1025
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1026 cdl_component CYGPKG_KERNEL_API {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1027 display "Kernel APIs"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1028 type dummy
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1029 parent CYGPKG_KERNEL
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1030 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1031 The eCos kernel is implemented in C++, so a C++ interface
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1032 to the kernel is always available. There is also an optional
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1033 C API. Additional API's may be provided in future versions."
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1034 doc ref/ecos-ref/kernel-apis.html
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1035 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1036
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1037 cdl_option CYGFUN_KERNEL_API_C {
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1038 display "Provide C API"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1039 parent CYGPKG_KERNEL_API
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1040 description "
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1041 The eCos kernel is implemented in C++, but there is an
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1042 optional C API for use by application code. This C API can be
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1043 disabled if the application code does not invoke the kernel
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1044 directly, but instead uses higher level code such as the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1045 uITRON compatibility layer."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1046 }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1047
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1048 }}CFG_DATA */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1049
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1050 #define CYGFUN_KERNEL_API_C
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1051
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1052 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1053 * The rest of this header file contains various fix-ups and
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1054 * options which cannot yet be controlled via the GUI tool.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1055 *
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1056 * First some miscellaneous scheduler support, all calculated.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1057 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1058
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1059 #if defined(CYGSEM_KERNEL_SCHED_TIMESLICE) && defined(CYGSEM_KERNEL_SCHED_BITMAP)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1060 # error Timeslicing cannot be enabled if the bitmap scheduler is used.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1061 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1062
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1063 /*
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1064 * These #define's are for the system's internal use only and should
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1065 * not be edited by users. */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1066 #ifdef CYGSEM_KERNEL_SCHED_BITMAP
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1067 # define CYGPRI_KERNEL_SCHED_IMPL_HXX <cyg/kernel/bitmap.hxx>
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1068 #elif defined(CYGSEM_KERNEL_SCHED_MLQUEUE)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1069 # define CYGPRI_KERNEL_SCHED_IMPL_HXX <cyg/kernel/mlqueue.hxx>
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1070 #elif defined(CYGSEM_KERNEL_SCHED_LOTTERY)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1071 # define CYGPRI_KERNEL_SCHED_IMPL_HXX <cyg/kernel/lottery.hxx>
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1072 #else
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1073 #error No Scheduler defined
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1074 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1075
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1076 #define CYGNUM_KERNEL_SCHED_BITMAP_SIZE CYGNUM_KERNEL_SCHED_PRIORITIES
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1077
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1078 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1079 * Counter and clock related miscellania.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1080 *
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1081 * If a real-time clock is enabled then there are additional
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1082 * configuration options controlling the resolution of the clock,
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1083 * CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION and
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1084 * CYGNUM_KERNEL_COUNTERS_RTC_PERIOD. Different targets require
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1085 * different default values, and the current configuration tool cannot
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1086 * deal with this yet. Also the exact details of the resolution and
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1087 * period values are still subject to change.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1088 *
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1089 * To allow the clock settings to be controlled in some fashion,
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1090 * there is a configuration option to override the default settings.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1091 * If this option is enabled then the resolution and period
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1092 * #define's will come from configuration options (which do not
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1093 * necessarily have sensible defaults, and which are not validated).
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1094 * Otherwise the platform-specific numbers below are used. On
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1095 * hardware this result in 100 clock interrupts every second.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1096 * For simulators slightly different values are used, so that the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1097 * various test cases run faster.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1098 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1099
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1100 #ifdef CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1101
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1102 # define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION \
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1103 { CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_NUMERATOR, \
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1104 CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_DENOMINATOR }
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1105
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1106 # define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_PERIOD
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1107
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1108 #else /* CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1109
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1110 #if defined(CYG_HAL_MN10300_STDEVAL1)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1111
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1112 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1113 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 150000
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1114
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1115 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1116 #if defined(CYG_HAL_MN10300_SIM)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1117
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1118 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1119 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 9999
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1120
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1121 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1122
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1123 #if defined(CYG_HAL_MIPS_JMR3904)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1124
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1125 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1126 #if (CYGHWR_HAL_MIPS_CPU_FREQ == 50)
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1127 # define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 15360
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1128 #elif (CYGHWR_HAL_MIPS_CPU_FREQ == 66)
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1129 # define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 20736
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1130 #else
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1131 #error Unsupported clock frequency
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1132 #endif
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1133 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1134
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1135 #if defined(CYG_HAL_MIPS_SIM)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1136
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1137 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1138 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 999
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1139
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1140 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1141
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1142 #if defined(CYG_HAL_POWERPC_MPC860)
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1143
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1144 // Period is busclock/16/100.
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1145 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1146 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 20833
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1147
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1148 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1149
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1150 #if defined(CYG_HAL_ARM_PID)
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1151 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1152 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 12500
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1153 #endif
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1154 #if defined(CYG_HAL_ARM_AEB)
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1155 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1156 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD (240000/16)
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1157 #endif
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1158
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1159 #if defined(CYG_HAL_I386_LINUX)
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1160 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1161 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 10000
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1162 #endif
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1163
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1164 #ifndef CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1165
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1166 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1167 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 9999
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1168
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1169 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1170
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1171 #endif /* CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1172
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1173 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1174 * Thread-related miscellania.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1175 *
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1176 * These options provide for an assertion that the count value for counted
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1177 * thread wakeups or for thread suspends do not exceed set limits. This is
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1178 * to help with debugging, to allow a runaaway loop, for example, to be
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1179 * detected more easily.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1180 *
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1181 * If the option is not defined, no assert is included. Whether asserts
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1182 * are themselves included depends on infrastructure configury in infra.h
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1183 *
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1184 * It is hoped that these defaults are helpful rather than interfering.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1185 */
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1186 #define CYGNUM_KERNEL_MAX_SUSPEND_COUNT_ASSERT (500)
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1187 #define CYGNUM_KERNEL_MAX_COUNTED_WAKE_COUNT_ASSERT (500)
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1188
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1189 /*
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1190 * If the scheduler configuration only has a single priority level,
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1191 * then the idle thread must yield each time around its loop.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1192 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1193
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1194 #if CYGNUM_KERNEL_SCHED_PRIORITIES == 1
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1195 # define CYGIMP_IDLE_THREAD_YIELD
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1196 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1197
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1198 /*
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1199 * Per thread data options. Per thread data suuport is based loosely
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1200 * on that define by POSIX. Each thread has an array of slots, up to
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1201 * CYGNUM_KERNEL_THREADS_DATA_MAX, that may contain data. Some of the
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1202 * slots have been preallocated to specific packages. Others may be
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1203 * allocated dynamically.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1204 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1205
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1206 #define CYGNUM_KERNEL_THREADS_DATA_KERNEL 0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1207 #define CYGNUM_KERNEL_THREADS_DATA_ITRON 1
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1208 #define CYGNUM_KERNEL_THREADS_DATA_LIBC 2
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1209 #define CYGNUM_KERNEL_THREADS_DATA_POSIX 3
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1210
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1211 #define CYGNUM_KERNEL_THREADS_DATA_ALL 0xF
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1212
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1213 /*
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1214 * Some consistency checks.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1215 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1216 #if defined(CYGFUN_KERNEL_THREADS_TIMER) && !defined(CYGVAR_KERNEL_COUNTERS_CLOCK)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1217 # error "Cannot have Thread Timers without Real Time Clock"
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1218 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1219
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1220 #if defined(CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT) && !defined(CYGVAR_KERNEL_THREADS_LIST)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1221 # error "GDB thread support requires a list of all known threads."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1222 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1223
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1224 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1225 * Synchronization primitives miscellania.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1226 *
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1227 * These lines should not be edited by users.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1228 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1229 #ifdef CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE_SIMPLE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1230 # define CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1231 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1232 #if defined(CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE) && !defined(CYGSEM_KERNEL_SCHED_MLQUEUE)
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1233 # error "Priority inheritance can only be enabled if the mlqueue scheduler is used."
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1234 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1235
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1236 /* ---------------------------------------------------------------------
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1237 * This code allows the kernel build to be configured as a GDB
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1238 * stub ROM monitor. It is only intended for internal use.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1239 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1240
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1241 /*
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1242 * BLV: This code must be kept commented out for now, as it can
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1243 * confuse the configuration tool. The correct solution is to have a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1244 * standard configuration for the system as represented by e.g. a
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1245 * .ptest file which does the right thing. A ROM monitor is an
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1246 * application, and application-specific configuration stuff should
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1247 * not live in the master header file.
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1248 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1249
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1250 /*
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1251 #undef CYG_HAL_ROM_MONITOR
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1252
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1253 #ifdef CYG_HAL_ROM_MONITOR
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1254
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1255 #undef CYGFUN_HAL_COMMON_KERNEL_SUPPORT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1256 #undef CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1257 #undef CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1258 #undef CYGSEM_HAL_COMMON_INTERRUPTS_ALLOW_NESTING
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1259 #undef CYGIMP_KERNEL_INTERRUPTS_CHAIN
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1260 #undef CYGVAR_KERNEL_COUNTERS_CLOCK
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1261 #undef CYGFUN_KERNEL_THREADS_TIMER
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1262 #undef CYGPKG_KERNEL_EXCEPTIONS
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1263 #undef CYGSEM_KERNEL_SCHED_TIMESLICE
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1264 #undef CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE_SIMPLE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1265 #undef CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1266 #undef CYGPKG_KERNEL_INSTRUMENT
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1267 #undef CYGDBG_INFRA_DIAG_USE_DEVICE // now lives in infra
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1268
2
443894e2e912 Block commit of eCos version 1.2.1
jlarmour
parents: 0
diff changeset
1269 #define CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
0
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1270
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1271 #endif
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1272 */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1273
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1274 /* -------------------------------------------------------------------*/
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1275
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1276 #endif /* ifdef CYGPKG_KERNEL */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1277
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1278 /* -------------------------------------------------------------------*/
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1279 #endif /* CYGONCE_PKGCONF_KERNEL_H */
3111d98ba7b3 Initial commit of eCos version 1.1
jlarmour
parents:
diff changeset
1280 /* EOF kernel.h */