RTEMS CPU Kit with SuperCore  4.11.2
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 */
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
RTEMS_INLINE_ROUTINE size_t _Stack_Ensure_minimum(size_t size)
This function returns the appropriate stack size given the requested size.
Definition: stackimpl.h:83
RTEMS_INLINE_ROUTINE void _Stack_Initialize(Stack_Control *the_stack, void *starting_address, size_t size)
This routine initializes the_stack record to indicate that size bytes of memory starting at starting_...
Definition: stackimpl.h:38
size_t size
This is the stack size.
Definition: stack.h:50
RTEMS_INLINE_ROUTINE bool _Stack_Is_enough(size_t size)
This function returns true if size bytes is enough memory for a valid stack area on this processor...
Definition: stackimpl.h:67
uint32_t rtems_minimum_stack_size
This variable contains the the minimum stack size;.
The following defines the control block used to manage each stack.
Definition: stack.h:48
RTEMS_INLINE_ROUTINE uint32_t _Stack_Minimum(void)
This function returns the minimum stack size configured for this application.
Definition: stackimpl.h:54
void * area
This is the low memory address of stack.
Definition: stack.h:52
Information About the Thread Stack Handler.