source: rtems/cpukit/score/include/rtems/score/stack.h @ 89f8eab5

4.115
Last change on this file since 89f8eab5 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

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