mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00

This patch introduces the shared Mbed TLS heap optimisation for Arm platforms. The objective is the Mbed TLS heap to be shared between BL1 and BL2 so as to not allocate the heap memory twice. To achieve that, the patch introduces all the necessary helpers for implementing this optimisation. It also applies it for FVP. Change-Id: I6d85eaa1361517b7490956b2ac50f5fa0d0bb008 Signed-off-by: John Tsichritzis <john.tsichritzis@arm.com>
22 lines
721 B
C
22 lines
721 B
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef __ARM_DYN_CFG_HELPERS_H__
|
|
#define __ARM_DYN_CFG_HELPERS_H__
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
/* Function declarations */
|
|
int arm_dyn_get_config_load_info(void *dtb, int node, unsigned int config_id,
|
|
uint64_t *config_addr, uint32_t *config_size);
|
|
int arm_dyn_tb_fw_cfg_init(void *dtb, int *node);
|
|
int arm_dyn_get_disable_auth(void *dtb, int node, uint32_t *disable_auth);
|
|
int arm_get_dtb_mbedtls_heap_info(void *dtb, void **heap_addr,
|
|
size_t *heap_size);
|
|
int arm_set_dtb_mbedtls_heap_info(void *dtb, void *heap_addr,
|
|
size_t heap_size);
|
|
|
|
#endif /* __ARM_DYN_CFG_HELPERS_H__ */
|