source: rtems/spec/build/bsps/sparc/objmem.yml @ d7205f0

Last change on this file since d7205f0 was d7205f0, checked in by Sebastian Huber <sebastian.huber@…>, on 04/08/20 at 15:14:41

libc: Optimize malloc() initialization

The BSPs provide memory for the separate C Program Heap initialization
via _Memory_Get(). Most BSPs provide exactly one memory area. Only two
BSPs provide more than one memory area (arm/altera-cyclone-v and
bsps/powerpc/mpc55xxevb). Only if more than one memory area is
provided, there is a need to use _Heap_Extend(). Provide two
implementations to initialize the separate C Program Heap and let the
BSP select one of the implementations based on the number of provided
memory areas. This gets rid of a dependency on _Heap_Extend(). It
also avoids dead code sections for most BSPs.

Change licence to BSD-2-Clause according to file history.

Update #3053.

  • Property mode set to 100644
File size: 385 bytes
Line 
1SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
2build-type: objects
3cflags: []
4copyrights:
5- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
6cppflags: []
7cxxflags: []
8enabled-by: true
9includes: []
10install: []
11links: []
12source:
13- bsps/shared/start/mallocinitone.c
14- bsps/shared/start/wkspaceinitone.c
15- bsps/sparc/shared/start/bspgetworkarea.c
16type: build
Note: See TracBrowser for help on using the repository browser.