From a4429391b6bb9673cace35bb69edf35951fc6742 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 19 Apr 2018 06:23:59 +0200 Subject: bsps: Move sbrk.c to bsps This patch is a part of the BSP source reorganization. Update #3285. --- bsps/shared/start/sbrk.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bsps/shared/start/sbrk.c (limited to 'bsps/shared/start') diff --git a/bsps/shared/start/sbrk.c b/bsps/shared/start/sbrk.c new file mode 100644 index 0000000000..5138b29678 --- /dev/null +++ b/bsps/shared/start/sbrk.c @@ -0,0 +1,28 @@ +/* + * sbrk.c + * + * If the BSP wants to dynamically allocate the memory for the + * C Library heap (malloc) and/or be able to extend the heap, + * then this routine must be functional. This is the default + * implementation which raises an error. + * + * COPYRIGHT (c) 1989-1999. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#include + +#include +#include +#include +#include + +void * sbrk(ptrdiff_t incr) +{ + errno = ENOMEM; + return (void *)-1; +} -- cgit v1.2.3