diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-08 17:14:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-03-09 16:34:15 +0100 |
commit | ae9e475d682a764bb872d319b1c784cf06010227 (patch) | |
tree | c3f65bee2285d9f934599d48eae4fb500a9b5465 /cpukit/include/rtems/malloc.h | |
parent | ec78e0359b1c2ef18954088114b06e1b8582e073 (diff) |
libc: Optimize malloc() initialization
Change licence to BSD-2-Clause according to file history.
Diffstat (limited to 'cpukit/include/rtems/malloc.h')
-rw-r--r-- | cpukit/include/rtems/malloc.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cpukit/include/rtems/malloc.h b/cpukit/include/rtems/malloc.h index ec6473a703..fc7f3be3ae 100644 --- a/cpukit/include/rtems/malloc.h +++ b/cpukit/include/rtems/malloc.h @@ -19,7 +19,6 @@ #include <rtems.h> #include <rtems/bspIo.h> #include <rtems/libcsupport.h> /* for malloc_walk() */ -#include <rtems/score/memory.h> #include <stdint.h> @@ -43,13 +42,10 @@ extern "C" { */ extern Heap_Control *RTEMS_Malloc_Heap; -Heap_Control *RTEMS_Malloc_Initialize( - const Memory_Information *mem, - Heap_Initialization_or_extend_handler extend -); - extern ptrdiff_t RTEMS_Malloc_Sbrk_amount; +void _Malloc_Initialize( void ); + static inline void rtems_heap_set_sbrk_amount( ptrdiff_t sbrk_amount ) { RTEMS_Malloc_Sbrk_amount = sbrk_amount; |