Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 1 | /* |
Roberto Vargas | 0571270 | 2018-02-12 12:36:17 +0000 | [diff] [blame] | 2 | * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __BL2_PRIVATE_H__ |
| 8 | #define __BL2_PRIVATE_H__ |
| 9 | |
Jiafei Pan | 43a7bf4 | 2018-03-21 07:20:09 +0000 | [diff] [blame] | 10 | #if BL2_IN_XIP_MEM |
| 11 | /******************************************************************************* |
| 12 | * Declarations of linker defined symbols which will tell us where BL2 lives |
| 13 | * in Trusted ROM and RAM |
| 14 | ******************************************************************************/ |
| 15 | extern uintptr_t __BL2_ROM_END__; |
| 16 | #define BL2_ROM_END (uintptr_t)(&__BL2_ROM_END__) |
| 17 | |
| 18 | extern uintptr_t __BL2_RAM_START__; |
| 19 | extern uintptr_t __BL2_RAM_END__; |
| 20 | #define BL2_RAM_BASE (uintptr_t)(&__BL2_RAM_START__) |
| 21 | #define BL2_RAM_LIMIT (uintptr_t)(&__BL2_RAM_END__) |
| 22 | #endif |
| 23 | |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 24 | /****************************************** |
Yatharth Kochar | 51f76f6 | 2016-09-12 16:10:33 +0100 | [diff] [blame] | 25 | * Forward declarations |
| 26 | *****************************************/ |
| 27 | struct entry_point_info; |
| 28 | |
| 29 | /****************************************** |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 30 | * Function prototypes |
| 31 | *****************************************/ |
Dan Handley | a17fefa | 2014-05-14 12:38:32 +0100 | [diff] [blame] | 32 | void bl2_arch_setup(void); |
Yatharth Kochar | 51f76f6 | 2016-09-12 16:10:33 +0100 | [diff] [blame] | 33 | struct entry_point_info *bl2_load_images(void); |
Roberto Vargas | 0571270 | 2018-02-12 12:36:17 +0000 | [diff] [blame] | 34 | void bl2_run_next_image(const struct entry_point_info *bl_ep_info); |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 35 | |
| 36 | #endif /* __BL2_PRIVATE_H__ */ |