RTEMS  5.0.0
stackimpl.h
Go to the documentation of this file.
1 
10 /*
11  * COPYRIGHT (c) 1989-2006.
12  * On-Line Applications Research Corporation (OAR).
13  *
14  * The license and distribution terms for this file may be
15  * found in the file LICENSE in this distribution or at
16  * http://www.rtems.org/license/LICENSE.
17  */
18 
19 #ifndef _RTEMS_SCORE_STACKIMPL_H
20 #define _RTEMS_SCORE_STACKIMPL_H
21 
22 #include <rtems/score/stack.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
39  Stack_Control *the_stack,
40  void *starting_address,
41  size_t size
42 )
43 {
44  the_stack->area = starting_address;
45  the_stack->size = size;
46 }
47 
55 {
57 }
58 
68  size_t size
69 )
70 {
71  return ( size >= _Stack_Minimum() );
72 }
73 
84  size_t size
85 )
86 {
87  if ( size >= _Stack_Minimum() )
88  return size;
89  return _Stack_Minimum();
90 }
91 
94 #ifdef __cplusplus
95 }
96 #endif
97 
98 #endif
99 /* end of include file */
Information About the Thread Stack Handler.
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
RTEMS_INLINE_ROUTINE size_t _Stack_Ensure_minimum(size_t size)
Definition: stackimpl.h:83
RTEMS_INLINE_ROUTINE void _Stack_Initialize(Stack_Control *the_stack, void *starting_address, size_t size)
Definition: stackimpl.h:38
size_t size
Definition: stack.h:50
RTEMS_INLINE_ROUTINE bool _Stack_Is_enough(size_t size)
Definition: stackimpl.h:67
uint32_t rtems_minimum_stack_size
Definition: stack.h:48
RTEMS_INLINE_ROUTINE uint32_t _Stack_Minimum(void)
Definition: stackimpl.h:54
unsigned size
Definition: tte.h:74
void * area
Definition: stack.h:52