1 # ====================================================================
5 # configuration data related to kernel interrupt handling
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
13 ## eCos is free software; you can redistribute it and/or modify it under
14 ## the terms of the GNU General Public License as published by the Free
15 ## Software Foundation; either version 2 or (at your option) any later version.
17 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 ## You should have received a copy of the GNU General Public License along
23 ## with eCos; if not, write to the Free Software Foundation, Inc.,
24 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26 ## As a special exception, if other files instantiate templates or use macros
27 ## or inline functions from this file, or you compile this file and link it
28 ## with other works to produce a work based on this file, this file does not
29 ## by itself cause the resulting work to be covered by the GNU General Public
30 ## License. However the source code for this file must still be made available
31 ## in accordance with section (3) of the GNU General Public License.
33 ## This exception does not invalidate any other reasons why a work based on
34 ## this file might be covered by the GNU General Public License.
36 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37 ## at http://sources.redhat.com/ecos/ecos-license/
38 ## -------------------------------------------
39 #####ECOSGPLCOPYRIGHTEND####
40 # ====================================================================
41 ######DESCRIPTIONBEGIN####
44 # Original data: nickg
48 #####DESCRIPTIONEND####
50 # ====================================================================
52 # NOTE: the choice of list vs table should not be two separate
53 # options. There is a single option which must have one of
55 cdl_component CYGIMP_KERNEL_INTERRUPTS_DSRS {
56 display "Use delayed service routines (DSRs)"
59 In eCos the recommended way to handle device interrupts is to
60 do a minimum amount of work inside the low level interrupt
61 handler itself, and instead do as much as possible in a
62 Delayed Service Routine or DSR. If an application does not
63 make use of DSRs directly or indirectly then it is possible
64 to disable the DSR support completely, which reduces the
65 overheads of context switches and interrupt handling. Note
66 that the kernel real-time clock makes use of DSRs, as do many
67 of the device drivers. "
69 cdl_interface CYGINT_KERNEL_INTERRUPTS_DSRS {
70 requires 1 == CYGINT_KERNEL_INTERRUPTS_DSRS
74 # NOTE: the choice of list vs table should not be two separate
75 # options. There is a single option which must have one of
77 cdl_option CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST {
78 display "Use linked lists for DSRs"
80 implements CYGINT_KERNEL_INTERRUPTS_DSRS
82 When DSR support is enabled the kernel must keep track of all
83 the DSRs that are pending. This information can be kept in a
84 fixed-size table or in a linked list. The list implementation
85 requires that the kernel disable interrupts for a very short
86 period of time outside interrupt handlers, but there is no
87 possibility of a table overflow occurring."
90 cdl_component CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE {
91 display "Use fixed-size table for DSRs"
93 implements CYGINT_KERNEL_INTERRUPTS_DSRS
95 When DSR support is enabled the kernel must keep track of all
96 the DSRs that are pending. This information can be kept in a
97 fixed-size table or in a linked list. The table
98 implementation involves a very small risk of overflow at
99 run-time if a given interrupt source is able to have more
100 than one pending DSR. However it has the advantage that
101 the kernel does not need to disable interrupts outside
104 cdl_option CYGNUM_KERNEL_INTERRUPTS_DSRS_TABLE_SIZE {
105 display "Number of entries in fixed-size DSR table"
107 legal_values 2 to 1024
110 When DSR support is enabled the kernel must keep track of all
111 the DSRs that are pending. One approach involves a fixed-size
112 table, which involves a very small risk of overflow at
113 run-time. By increasing the table size it is possible to reduce
118 cdl_option CYGIMP_KERNEL_INTERRUPTS_CHAIN {
119 display "Chain all interrupts together"
120 requires CYGIMP_HAL_COMMON_INTERRUPTS_CHAIN
123 Interrupts can be attached to vectors either singly, or be
124 chained together. The latter is necessary if there is no way
125 of discovering which device has interrupted without
126 inspecting the device itself. It can also reduce the amount
127 of RAM needed for interrupt decoding tables and code."