bl2_private.h 1.14 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
#ifndef BL2_PRIVATE_H
#define BL2_PRIVATE_H
9

Jiafei Pan's avatar
Jiafei Pan committed
10
#if BL2_IN_XIP_MEM
11
12
13

#include <stdint.h>

Jiafei Pan's avatar
Jiafei Pan committed
14
15
16
17
18
19
20
21
22
23
24
25
26
/*******************************************************************************
 * 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

27
28
29
30
31
/******************************************
 * Forward declarations
 *****************************************/
struct entry_point_info;

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

39
#endif /* BL2_PRIVATE_H */