• John Tsichritzis's avatar
    Prepare Mbed TLS drivers for shared heap · 6d01a463
    John Tsichritzis authored
    
    
    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: default avatarJohn Tsichritzis <john.tsichritzis@arm.com>
    6d01a463
plat_bl_common.c 1.77 KB