summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/heapimpl.h
diff options
context:
space:
mode:
authorsebastian.huber <sebastian.huber@ad346e48-6743-2946-b04c-964484d2d4e6>2019-10-25 13:19:01 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-05 07:29:00 +0100
commit3859cd63afb4cb5f76d125e80f968497478d553f (patch)
tree642d9c6e78f2fa8dcb1d027496cfb9ca1c710d49 /cpukit/include/rtems/score/heapimpl.h
parentbsps/arm: Add support for small pages MMU (diff)
downloadrtems-3859cd63afb4cb5f76d125e80f968497478d553f.tar.bz2
rtems-5: Improve heap fatal error information
Update #3806.
Diffstat (limited to 'cpukit/include/rtems/score/heapimpl.h')
-rw-r--r--cpukit/include/rtems/score/heapimpl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/include/rtems/score/heapimpl.h b/cpukit/include/rtems/score/heapimpl.h
index cd213ec2d8..d3ee0ff88a 100644
--- a/cpukit/include/rtems/score/heapimpl.h
+++ b/cpukit/include/rtems/score/heapimpl.h
@@ -379,7 +379,7 @@ Heap_Block *_Heap_Block_allocate(
#ifndef HEAP_PROTECTION
#define _Heap_Protection_block_initialize( heap, block ) ((void) 0)
#define _Heap_Protection_block_check( heap, block ) ((void) 0)
- #define _Heap_Protection_block_error( heap, block ) ((void) 0)
+ #define _Heap_Protection_block_error( heap, block, reason ) ((void) 0)
#define _Heap_Protection_free_all_delayed_blocks( heap ) ((void) 0)
#else
static inline void _Heap_Protection_block_initialize(
@@ -400,10 +400,11 @@ Heap_Block *_Heap_Block_allocate(
static inline void _Heap_Protection_block_error(
Heap_Control *heap,
- Heap_Block *block
+ Heap_Block *block,
+ Heap_Error_reason reason
)
{
- (*heap->Protection.block_error)( heap, block );
+ (*heap->Protection.block_error)( heap, block, reason );
}
static inline void _Heap_Protection_free_all_delayed_blocks( Heap_Control *heap )