RTEMS
threadstackallocate.c
Go to the documentation of this file.
1 
9 /*
10  * COPYRIGHT (c) 1989-2010.
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.org/license/LICENSE.
16  */
17 
18 #ifdef HAVE_CONFIG_H
19 #include "config.h"
20 #endif
21 
22 #include <rtems/score/stackimpl.h>
23 #include <rtems/config.h>
24 
25 void *_Stack_Allocate( size_t stack_size )
26 {
27  return ( *rtems_configuration_get_stack_allocate_hook() )( stack_size );
28 }
This header file defines parts of the application configuration information API.
Inlined Routines from the Stack Handler.
#define rtems_configuration_get_stack_allocate_hook()
Returns the thread stack allocator allocate hook.
Definition: config.h:248
void * _Stack_Allocate(size_t stack_size)
Allocate the requested stack space.