RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stackalloc.h
Go to the documentation of this file.
1
9/*
10 * Copyright (c) 2009-2012 embedded brains GmbH. All rights reserved.
11 *
12 * embedded brains GmbH
13 * Obere Lagerstr. 30
14 * 82178 Puchheim
15 * Germany
16 * <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#ifndef LIBBSP_SHARED_STACK_ALLOC_H
24#define LIBBSP_SHARED_STACK_ALLOC_H
25
26#include <stddef.h>
27#include <stdint.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* __cplusplus */
32
58void bsp_stack_allocate_init(size_t stack_space_size);
59
66void *bsp_stack_allocate(size_t size);
67
71void bsp_stack_free(void *stack);
72
76#define CONFIGURE_TASK_STACK_ALLOCATOR_INIT bsp_stack_allocate_init
77
81#define CONFIGURE_TASK_STACK_ALLOCATOR bsp_stack_allocate
82
86#define CONFIGURE_TASK_STACK_DEALLOCATOR bsp_stack_free
87
90#ifdef __cplusplus
91}
92#endif /* __cplusplus */
93
94#endif /* LIBBSP_SHARED_STACK_ALLOC_H */
void bsp_stack_allocate_init(size_t stack_space_size)
Task stack allocator initialization for CONFIGURE_TASK_STACK_ALLOCATOR_INIT.
Definition: stackalloc.c:33
void bsp_stack_free(void *stack)
Task stack free function for CONFIGURE_TASK_STACK_DEALLOCATOR.
Definition: stackalloc.c:58
void * bsp_stack_allocate(size_t size)
Task stack allocator for CONFIGURE_TASK_STACK_ALLOCATOR.
Definition: stackalloc.c:43
unsigned size
Definition: tte.h:1