2014-04-17 18:53:42 +01:00
|
|
|
/*
|
2018-02-12 12:36:17 +00:00
|
|
|
* Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
|
2014-04-17 18:53:42 +01:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2014-04-17 18:53:42 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BL2_PRIVATE_H__
|
|
|
|
#define __BL2_PRIVATE_H__
|
|
|
|
|
2018-03-21 07:20:09 +00:00
|
|
|
#if BL2_IN_XIP_MEM
|
|
|
|
/*******************************************************************************
|
|
|
|
* Declarations of linker defined symbols which will tell us where BL2 lives
|
|
|
|
* in Trusted ROM and RAM
|
|
|
|
******************************************************************************/
|
|
|
|
extern uintptr_t __BL2_ROM_END__;
|
|
|
|
#define BL2_ROM_END (uintptr_t)(&__BL2_ROM_END__)
|
|
|
|
|
|
|
|
extern uintptr_t __BL2_RAM_START__;
|
|
|
|
extern uintptr_t __BL2_RAM_END__;
|
|
|
|
#define BL2_RAM_BASE (uintptr_t)(&__BL2_RAM_START__)
|
|
|
|
#define BL2_RAM_LIMIT (uintptr_t)(&__BL2_RAM_END__)
|
|
|
|
#endif
|
|
|
|
|
2016-09-12 16:10:33 +01:00
|
|
|
/******************************************
|
|
|
|
* Forward declarations
|
|
|
|
*****************************************/
|
|
|
|
struct entry_point_info;
|
|
|
|
|
2014-04-17 18:53:42 +01:00
|
|
|
/******************************************
|
|
|
|
* Function prototypes
|
|
|
|
*****************************************/
|
2014-05-14 12:38:32 +01:00
|
|
|
void bl2_arch_setup(void);
|
2016-09-12 16:10:33 +01:00
|
|
|
struct entry_point_info *bl2_load_images(void);
|
2018-02-12 12:36:17 +00:00
|
|
|
void bl2_run_next_image(const struct entry_point_info *bl_ep_info);
|
2014-04-17 18:53:42 +01:00
|
|
|
|
|
|
|
#endif /* __BL2_PRIVATE_H__ */
|