5
Last change
on this file since 86e79d7 was
ae5fe7e6,
checked in by Chris Johns <chrisj@…>, on 10/27/14 at 01:09:41
|
cpukit: Add libdl with the Runtime Loader (RTL) code.
This is a merge of the RTL project.
|
-
Property mode set to
100644
|
File size:
702 bytes
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org> |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | /** |
---|
9 | * @file |
---|
10 | * |
---|
11 | * @ingroup rtems_rtl |
---|
12 | * |
---|
13 | * @brief RTEMS Run-Time Linker Allocator for the standard heap. |
---|
14 | */ |
---|
15 | |
---|
16 | #include <stdlib.h> |
---|
17 | |
---|
18 | #include "rtl-alloc-heap.h" |
---|
19 | |
---|
20 | void |
---|
21 | rtems_rtl_alloc_heap (bool allocate, |
---|
22 | rtems_rtl_alloc_tag_t tag, |
---|
23 | void** address, |
---|
24 | size_t size) |
---|
25 | { |
---|
26 | if (allocate) |
---|
27 | *address = malloc (size); |
---|
28 | else |
---|
29 | { |
---|
30 | free (*address); |
---|
31 | *address = NULL; |
---|
32 | } |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.