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
9c1682f5
Unverified
Commit
9c1682f5
authored
7 years ago
by
davidcunado-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1279 from soby-mathew/sm/BL2_base_assert
ARM Platforms: Add assertion for BL2_BASE
parents
2e919a39
caf4eca1
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
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
plat/arm/common/arm_bl2_setup.c
+14
-0
plat/arm/common/arm_bl2_setup.c
plat/arm/common/sp_min/arm_sp_min.mk
+7
-0
plat/arm/common/sp_min/arm_sp_min.mk
with
21 additions
and
0 deletions
+21
-0
plat/arm/common/arm_bl2_setup.c
View file @
9c1682f5
...
...
@@ -24,6 +24,20 @@
/* Data structure which holds the extents of the trusted SRAM for BL2 */
static
meminfo_t
bl2_tzram_layout
__aligned
(
CACHE_WRITEBACK_GRANULE
);
/*
* Check that BL2_BASE is atleast a page over ARM_BL_RAM_BASE. The page is for
* `meminfo_t` data structure and TB_FW_CONFIG passed from BL1. Not needed
* when BL2 is compiled for BL_AT_EL3 as BL2 doesn't need any info from BL1 and
* BL2 is loaded at base of usable SRAM.
*/
#if BL2_AT_EL3
#define BL1_MEMINFO_OFFSET 0x0
#else
#define BL1_MEMINFO_OFFSET PAGE_SIZE
#endif
CASSERT
(
BL2_BASE
>=
(
ARM_BL_RAM_BASE
+
BL1_MEMINFO_OFFSET
),
assert_bl2_base_overflows
);
/* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak bl2_early_platform_setup
#pragma weak bl2_platform_setup
...
...
This diff is collapsed.
Click to expand it.
plat/arm/common/sp_min/arm_sp_min.mk
View file @
9c1682f5
...
...
@@ -5,6 +5,13 @@
#
# SP MIN source files common to ARM standard platforms
# Skip building BL1 and BL2 if RESET_TO_SP_MIN flag is set.
ifeq
(${RESET_TO_SP_MIN},1)
BL1_SOURCES
=
BL2_SOURCES
=
endif
BL32_SOURCES
+=
plat/arm/common/arm_pm.c
\
plat/arm/common/arm_topology.c
\
plat/arm/common/sp_min/arm_sp_min_setup.c
\
...
...
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