Prepare Mbed TLS drivers for shared heap
The Mbed TLS drivers, in order to work, need a heap for internal usage.
This heap, instead of being directly referenced by the drivers, now it
is being accessed indirectly through a pointer. Also, the heap, instead
of being part of the drivers, now it is being received through the
plat_get_mbedtls_heap() function. This function requests a heap from the
current BL image which utilises the Mbed TLS drivers.

Those changes create the opportunity for the Mbed TLS heap to be shared
among different images, thus saving memory. A default heap
implementation is provided but it can be overridden by a platform
specific, optimised implemenetation.

Change-Id: I286a1f10097a9cdcbcd312201eea576c18d157fa
Signed-off-by: John Tsichritzis <john.tsichritzis@arm.com>
1 parent 708531c commit 6d01a463348b04af2afa3c00579ebc6ecd12eaf1
@John Tsichritzis John Tsichritzis authored on 7 Jun 2018
Showing 5 changed files
View
docs/porting-guide.rst
View
drivers/auth/mbedtls/mbedtls_common.c
View
include/drivers/auth/mbedtls/mbedtls_config.h
View
include/plat/common/platform.h
View
plat/common/plat_bl_common.c