bl2_private.h 1.13 KB
Newer Older
1
/*
2
 * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
7
8
9
 */

#ifndef __BL2_PRIVATE_H__
#define __BL2_PRIVATE_H__

Jiafei Pan's avatar
Jiafei Pan committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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

24
25
26
27
28
/******************************************
 * Forward declarations
 *****************************************/
struct entry_point_info;

29
30
31
/******************************************
 * Function prototypes
 *****************************************/
32
void bl2_arch_setup(void);
33
struct entry_point_info *bl2_load_images(void);
34
void bl2_run_next_image(const struct entry_point_info *bl_ep_info);
35
36

#endif /* __BL2_PRIVATE_H__ */