From 3d0620b607ff6459fec9d30efc1e0589bbd010f9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 8 Apr 2020 16:54:34 +0200 Subject: score: Optimize Workspace Handler initialization The BSPs provide memory for the workspace 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 workspace handler 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. --- spec/build/bsps/objmem.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/build/bsps/objmem.yml') diff --git a/spec/build/bsps/objmem.yml b/spec/build/bsps/objmem.yml index af4d3051ba..6c72bc3f65 100644 --- a/spec/build/bsps/objmem.yml +++ b/spec/build/bsps/objmem.yml @@ -11,4 +11,5 @@ install: [] links: [] source: - bsps/shared/start/bspgetworkarea-default.c +- bsps/shared/start/wkspaceinitone.c type: build -- cgit v1.2.3