4.104.115
Last change
on this file since 41eb1e4 was
41eb1e4,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/08 at 22:48:54
|
2008-12-14 Joel Sherrill <joel.sherrill@…>
- libcsupport/src/realloc.c, rtems/include/rtems/rtems/region.h,
rtems/src/regioncreate.c, rtems/src/regionextend.c,
rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c,
rtems/src/regionmp.c, rtems/src/regionresizesegment.c,
sapi/include/rtems/config.h, score/include/rtems/score/heap.h,
score/include/rtems/score/protectedheap.h, score/src/heap.c,
score/src/heapallocate.c, score/src/heapallocatealigned.c,
score/src/heapextend.c, score/src/heapresizeblock.c,
score/src/heapsizeofuserarea.c, score/src/pheapallocate.c,
score/src/pheapallocatealigned.c, score/src/pheapextend.c,
score/src/pheapgetblocksize.c, score/src/pheapresizeblock.c: Change
sizes of heap/region and allocated objects in heap to intptr_t so
they can be larger than a single allocatable object (e.g. size_t).
|
-
Property mode set to
100644
|
File size:
585 bytes
|
Line | |
---|
1 | /** |
---|
2 | * COPYRIGHT (c) 1989-2007. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <rtems/system.h> |
---|
17 | #include <rtems/score/protectedheap.h> |
---|
18 | |
---|
19 | void *_Protected_heap_Allocate( |
---|
20 | Heap_Control *the_heap, |
---|
21 | intptr_t size |
---|
22 | ) |
---|
23 | { |
---|
24 | void *p; |
---|
25 | |
---|
26 | _RTEMS_Lock_allocator(); |
---|
27 | p = _Heap_Allocate( the_heap, size ); |
---|
28 | _RTEMS_Unlock_allocator(); |
---|
29 | return p; |
---|
30 | } |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.