• Sandrine Bailleux's avatar
    Juno: Add support for BL3-2 image · c0481ace
    Sandrine Bailleux authored
    This patch implements the TSP on Juno. It executes from Secure RAM.
    
    Also, the other bootloader images (i.e. BL1 R/W, BL2 and BL3-1) have
    been moved around. The reason is, although there was enough space
    overall to store the TSP in SRAM, there was no contiguous free chunk
    of SRAM big enough to hold it.
    
    This patch keeps the overall memory layout (i.e. keeping BL1 R/W at
    the bottom, BL2 at the top and BL3-1 in between) but moves the base
    addresses of all the bootloader images in such a way that:
     - memory fragmentation is reduced enough to fit BL3-2 in;
     - new base addresses are suitable for release builds as well as debug
       ones;
     - each image has a few extra kilobytes for future growth.
       BL3-1 and BL3-2 are the images which received the biggest slice
       of the cake since they will most probably grow the most.
    
    Change-Id: I1c5b51858700027ee283ac85d18e06863a27c72e
    c0481ace
plat-tsp.ld.S 1.59 KB
/*
 * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * Neither the name of ARM nor the names of its contributors may be used
 * to endorse or promote products derived from this software without specific
 * prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

    ASSERT(__BL32_END__ <= BL2_BASE, "BL3-2 image overlaps BL2 image.")