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