4.115
Last change
on this file since c86da31c was
b2a0214,
checked in by Sebastian Huber <sebastian.huber@…>, on 06/07/10 at 09:35:01
|
2010-06-07 Sebastian Huber <sebastian.huber@…>
- score/include/rtems/score/heap.h: Declare
_Heap_Get_first_and_last_block(). Removed Heap_Extend_status.
Changed return type of _Heap_Extend() to bool.
- score/inline/rtems/score/heap.inl: Define
_Heap_Set_last_block_size().
- score/src/heap.c: Define and use _Heap_Get_first_and_last_block().
- score/src/heapgetinfo.c: Removed assert statements. Do not count
the last block. This ensures that all size values are an integral
multiple of the page size which is consistent with the other
statistics.
- score/src/heapextend.c: Implemented support for scattered heap
areas.
- score/src/heapwalk.c: Dump also last block. Changes for new first
and last block values.
- ./score/src/pheapextend.c, rtems/src/regionextend.c: Update for
_Heap_Extend() changes.
|
-
Property mode set to
100644
|
File size:
803 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup ScoreProtHeap |
---|
5 | * |
---|
6 | * @brief Protected Heap Handler implementation. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2007. |
---|
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.com/license/LICENSE. |
---|
16 | * |
---|
17 | * $Id$ |
---|
18 | */ |
---|
19 | |
---|
20 | #if HAVE_CONFIG_H |
---|
21 | #include "config.h" |
---|
22 | #endif |
---|
23 | |
---|
24 | #include <rtems/system.h> |
---|
25 | #include <rtems/score/protectedheap.h> |
---|
26 | |
---|
27 | bool _Protected_heap_Extend( |
---|
28 | Heap_Control *the_heap, |
---|
29 | void *starting_address, |
---|
30 | uintptr_t size |
---|
31 | ) |
---|
32 | { |
---|
33 | bool extend_ok; |
---|
34 | uintptr_t amount_extended; |
---|
35 | |
---|
36 | _RTEMS_Lock_allocator(); |
---|
37 | extend_ok = _Heap_Extend(the_heap, starting_address, size, &amount_extended); |
---|
38 | _RTEMS_Unlock_allocator(); |
---|
39 | return extend_ok; |
---|
40 | } |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.