Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
edcb50ab
Unverified
Commit
edcb50ab
authored
6 years ago
by
Antonio Niño Díaz
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1757 from antonio-nino-diaz-arm/an/includes
Move BL1 and BL2 private defines to bl_common.h
parents
f6b79544
c9f9d9ea
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
bl1/bl1_private.h
+2
-10
bl1/bl1_private.h
bl2/bl2_private.h
+1
-16
bl2/bl2_private.h
include/common/bl_common.h
+17
-1
include/common/bl_common.h
plat/arm/common/arm_bl1_setup.c
+0
-2
plat/arm/common/arm_bl1_setup.c
plat/arm/css/sgi/sgi_plat.c
+0
-1
plat/arm/css/sgi/sgi_plat.c
plat/hisilicon/hikey/hikey_bl1_setup.c
+0
-1
plat/hisilicon/hikey/hikey_bl1_setup.c
plat/hisilicon/hikey960/hikey960_bl1_setup.c
+0
-1
plat/hisilicon/hikey960/hikey960_bl1_setup.c
plat/hisilicon/poplar/bl1_plat_setup.c
+0
-1
plat/hisilicon/poplar/bl1_plat_setup.c
plat/layerscape/common/ls_bl1_setup.c
+1
-1
plat/layerscape/common/ls_bl1_setup.c
plat/marvell/common/marvell_bl1_setup.c
+0
-1
plat/marvell/common/marvell_bl1_setup.c
plat/qemu/qemu_private.h
+0
-2
plat/qemu/qemu_private.h
plat/rpi3/rpi3_bl1_setup.c
+0
-1
plat/rpi3/rpi3_bl1_setup.c
with
21 additions
and
38 deletions
+21
-38
bl1/bl1_private.h
View file @
edcb50ab
...
...
@@ -9,16 +9,7 @@
#include <stdint.h>
#include <lib/utils_def.h>
/*******************************************************************************
* Declarations of linker defined symbols which will tell us where BL1 lives
* in Trusted ROM and RAM
******************************************************************************/
IMPORT_SYM
(
uintptr_t
,
__BL1_ROM_END__
,
BL1_ROM_END
);
IMPORT_SYM
(
uintptr_t
,
__BL1_RAM_START__
,
BL1_RAM_BASE
);
IMPORT_SYM
(
uintptr_t
,
__BL1_RAM_END__
,
BL1_RAM_LIMIT
);
#include <common/bl_common.h>
/******************************************
* Function prototypes
...
...
@@ -36,4 +27,5 @@ register_t bl1_fwu_smc_handler(unsigned int smc_fid,
void
*
cookie
,
void
*
handle
,
unsigned
int
flags
);
#endif
/* BL1_PRIVATE_H */
This diff is collapsed.
Click to expand it.
bl2/bl2_private.h
View file @
edcb50ab
...
...
@@ -7,22 +7,7 @@
#ifndef BL2_PRIVATE_H
#define BL2_PRIVATE_H
#if BL2_IN_XIP_MEM
#include <stdint.h>
/*******************************************************************************
* 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
#include <common/bl_common.h>
/******************************************
* Forward declarations
...
...
This diff is collapsed.
Click to expand it.
include/common/bl_common.h
View file @
edcb50ab
...
...
@@ -78,7 +78,12 @@ IMPORT_SYM(unsigned long, __RO_START__, BL_CODE_BASE);
IMPORT_SYM
(
unsigned
long
,
__RO_END__
,
BL_CODE_END
);
#endif
#if defined(IMAGE_BL2)
#if defined(IMAGE_BL1)
IMPORT_SYM
(
uintptr_t
,
__BL1_ROM_END__
,
BL1_ROM_END
);
IMPORT_SYM
(
uintptr_t
,
__BL1_RAM_START__
,
BL1_RAM_BASE
);
IMPORT_SYM
(
uintptr_t
,
__BL1_RAM_END__
,
BL1_RAM_LIMIT
);
#elif defined(IMAGE_BL2)
IMPORT_SYM
(
unsigned
long
,
__BL2_END__
,
BL2_END
);
#elif defined(IMAGE_BL2U)
IMPORT_SYM
(
unsigned
long
,
__BL2U_END__
,
BL2U_END
);
...
...
@@ -89,6 +94,17 @@ IMPORT_SYM(unsigned long, __BL31_END__, BL31_END);
IMPORT_SYM
(
unsigned
long
,
__BL32_END__
,
BL32_END
);
#endif
/* IMAGE_BLX */
/* The following symbols are only exported from the BL2 at EL3 linker script. */
#if BL2_IN_XIP_MEM && defined(IMAGE_BL2)
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
/* BL2_IN_XIP_MEM */
/*
* The next 2 constants identify the extents of the coherent memory region.
* These addresses are used by the MMU setup code and therefore they must be
...
...
This diff is collapsed.
Click to expand it.
plat/arm/common/arm_bl1_setup.c
View file @
edcb50ab
...
...
@@ -18,8 +18,6 @@
#include <plat_arm.h>
#include "../../../bl1/bl1_private.h"
/* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak bl1_early_platform_setup
#pragma weak bl1_plat_arch_setup
...
...
This diff is collapsed.
Click to expand it.
plat/arm/css/sgi/sgi_plat.c
View file @
edcb50ab
...
...
@@ -15,7 +15,6 @@
#include <services/secure_partition.h>
#include <plat_arm.h>
#include "../../../../bl1/bl1_private.h"
#if USE_COHERENT_MEM
/*
...
...
This diff is collapsed.
Click to expand it.
plat/hisilicon/hikey/hikey_bl1_setup.c
View file @
edcb50ab
...
...
@@ -22,7 +22,6 @@
#include <hikey_def.h>
#include <hikey_layout.h>
#include "../../../bl1/bl1_private.h"
#include "hikey_private.h"
/* Data structure which holds the extents of the trusted RAM for BL1 */
...
...
This diff is collapsed.
Click to expand it.
plat/hisilicon/hikey960/hikey960_bl1_setup.c
View file @
edcb50ab
...
...
@@ -25,7 +25,6 @@
#include <plat/common/platform.h>
#include <hi3660.h>
#include "../../../bl1/bl1_private.h"
#include "hikey960_def.h"
#include "hikey960_private.h"
...
...
This diff is collapsed.
Click to expand it.
plat/hisilicon/poplar/bl1_plat_setup.c
View file @
edcb50ab
...
...
@@ -22,7 +22,6 @@
#include <lib/mmio.h>
#include <plat/common/platform.h>
#include "../../../bl1/bl1_private.h"
#include "hi3798cv200.h"
#include "plat_private.h"
...
...
This diff is collapsed.
Click to expand it.
plat/layerscape/common/ls_bl1_setup.c
View file @
edcb50ab
...
...
@@ -4,11 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <common/bl_common.h>
#include <common/debug.h>
#include "ls_16550.h"
#include "plat_ls.h"
#include "../../../bl1/bl1_private.h"
/* Data structure which holds the extents of the trusted SRAM for BL1*/
static
meminfo_t
bl1_tzram_layout
;
...
...
This diff is collapsed.
Click to expand it.
plat/marvell/common/marvell_bl1_setup.c
View file @
edcb50ab
...
...
@@ -8,7 +8,6 @@
#include <platform_def.h>
#include <bl1/bl1.h>
#include <bl1/bl1_private.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <drivers/arm/sp805.h>
...
...
This diff is collapsed.
Click to expand it.
plat/qemu/qemu_private.h
View file @
edcb50ab
...
...
@@ -9,8 +9,6 @@
#include <stdint.h>
#include "../../bl1/bl1_private.h"
void
qemu_configure_mmu_svc_mon
(
unsigned
long
total_base
,
unsigned
long
total_size
,
unsigned
long
code_start
,
unsigned
long
code_limit
,
...
...
This diff is collapsed.
Click to expand it.
plat/rpi3/rpi3_bl1_setup.c
View file @
edcb50ab
...
...
@@ -13,7 +13,6 @@
#include <lib/xlat_tables/xlat_mmu_helpers.h>
#include <lib/xlat_tables/xlat_tables_defs.h>
#include "../../bl1/bl1_private.h"
#include "rpi3_private.h"
/* Data structure which holds the extents of the trusted SRAM for BL1 */
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help