4.104.115
Line | |
---|
1 | /** |
---|
2 | * @file rtems/score/stack.h |
---|
3 | * |
---|
4 | * This include file contains all information about the thread |
---|
5 | * Stack Handler. This Handler provides mechanisms which can be used to |
---|
6 | * initialize and utilize stacks. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2006. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.com/license/LICENSE. |
---|
16 | * |
---|
17 | * $Id$ |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef _RTEMS_SCORE_STACK_H |
---|
21 | #define _RTEMS_SCORE_STACK_H |
---|
22 | |
---|
23 | /** |
---|
24 | * @defgroup ScoreStack Stack Handler |
---|
25 | * |
---|
26 | * This handler encapsulates functionality which is used in the management |
---|
27 | * of thread stacks. |
---|
28 | */ |
---|
29 | /**@{*/ |
---|
30 | |
---|
31 | #ifdef __cplusplus |
---|
32 | extern "C" { |
---|
33 | #endif |
---|
34 | |
---|
35 | /** |
---|
36 | * The following constant defines the minimum stack size which every |
---|
37 | * thread must exceed. |
---|
38 | */ |
---|
39 | #define STACK_MINIMUM_SIZE CPU_STACK_MINIMUM_SIZE |
---|
40 | |
---|
41 | /** |
---|
42 | * The following defines the control block used to manage each stack. |
---|
43 | */ |
---|
44 | typedef struct { |
---|
45 | /** This is the stack size. */ |
---|
46 | size_t size; |
---|
47 | /** This is the low memory address of stack. */ |
---|
48 | void *area; |
---|
49 | } Stack_Control; |
---|
50 | |
---|
51 | /** |
---|
52 | * This variable contains the the minimum stack size; |
---|
53 | * |
---|
54 | * @note It is instantiated and set by User Configuration via confdefs.h. |
---|
55 | */ |
---|
56 | extern uint32_t rtems_minimum_stack_size; |
---|
57 | |
---|
58 | #ifndef __RTEMS_APPLICATION__ |
---|
59 | #include <rtems/score/stack.inl> |
---|
60 | #endif |
---|
61 | |
---|
62 | #ifdef __cplusplus |
---|
63 | } |
---|
64 | #endif |
---|
65 | |
---|
66 | /**@}*/ |
---|
67 | |
---|
68 | #endif |
---|
69 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.