4.8
Last change
on this file since 49bf16a was
49bf16a,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/11/07 at 23:44:29
|
2007-12-11 Joel Sherrill <joel.sherrill@…>
- score/src/pheapallocatealigned.c, score/src/pheapgetblocksize.c:
Reverse file contents.
|
-
Property mode set to
100644
|
File size:
691 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 | boolean _Protected_heap_Get_block_size( |
---|
20 | Heap_Control *the_heap, |
---|
21 | void *starting_address, |
---|
22 | size_t *size |
---|
23 | ) |
---|
24 | { |
---|
25 | boolean status; |
---|
26 | |
---|
27 | _RTEMS_Lock_allocator(); |
---|
28 | status = _Heap_Size_of_user_area( the_heap, starting_address, size ); |
---|
29 | _RTEMS_Unlock_allocator(); |
---|
30 | return status; |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.