diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-24 15:57:29 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-24 16:00:26 +0100 |
commit | 2a713e3b944625c45154f0ea7f5703e918de758b (patch) | |
tree | c572bfa9e000f7e1fd815d2ab698ac27abf70e7d /cpukit/score/src/heap.c | |
parent | libcsupport: Use POSIX keys for GXX key functions (diff) | |
download | rtems-2a713e3b944625c45154f0ea7f5703e918de758b.tar.bz2 |
score: _Heap_Protection_set_delayed_free_fraction
Add and use _Heap_Protection_set_delayed_free_fraction(). This makes it
possible to avoid a dependency on _Thread_Dispatch_is_enabled().
Diffstat (limited to 'cpukit/score/src/heap.c')
-rw-r--r-- | cpukit/score/src/heap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c index fa2430a2d8..949e963070 100644 --- a/cpukit/score/src/heap.c +++ b/cpukit/score/src/heap.c @@ -285,6 +285,8 @@ uintptr_t _Heap_Initialize( stats->max_free_blocks = 1; stats->instance = instance++; + _Heap_Protection_set_delayed_free_fraction( heap, 2 ); + _HAssert( _Heap_Is_aligned( heap->page_size, CPU_ALIGNMENT ) ); _HAssert( _Heap_Is_aligned( heap->min_block_size, page_size ) ); _HAssert( |