From 2374ab1799bedae1acc17fde0205d272f8111836 Mon Sep 17 00:00:00 2001 From: Ambroise Vincent Date: Wed, 10 Apr 2019 12:50:27 +0100 Subject: Mbed TLS: Remove weak heap implementation The implementation of the heap function plat_get_mbedtls_heap() becomes mandatory for platforms supporting TRUSTED_BOARD_BOOT. The shared Mbed TLS heap default weak function implementation is converted to a helper function get_mbedtls_heap_helper() which can be used by the platforms for their own function implementation. Change-Id: Ic8f2994e25e3d9fcd371a21ac459fdcafe07433e Signed-off-by: Ambroise Vincent --- plat/arm/board/juno/juno_security.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'plat/arm') diff --git a/plat/arm/board/juno/juno_security.c b/plat/arm/board/juno/juno_security.c index 9d7f0e421..6566b15c8 100644 --- a/plat/arm/board/juno/juno_security.c +++ b/plat/arm/board/juno/juno_security.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -10,6 +10,7 @@ #include #include #include +#include #include "juno_tzmp1_def.h" @@ -144,3 +145,10 @@ void plat_arm_security_setup(void) init_v550(); #endif } + +#if TRUSTED_BOARD_BOOT +int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) +{ + return get_mbedtls_heap_helper(heap_addr, heap_size); +} +#endif -- cgit v1.2.3