Skip to content
GitLab
Menu
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
085bac2b
Commit
085bac2b
authored
Aug 31, 2017
by
danh-arm
Committed by
GitHub
Aug 31, 2017
Browse files
Merge pull request #1072 from sandrine-bailleux-arm/sb/tsp-mapping
ARM platforms: Map TSP only when TSPD is included
parents
9a5d18ea
3eb2d672
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/plat/arm/common/arm_def.h
View file @
085bac2b
...
@@ -168,10 +168,12 @@
...
@@ -168,10 +168,12 @@
ARM_NS_DRAM1_SIZE, \
ARM_NS_DRAM1_SIZE, \
MT_MEMORY | MT_RW | MT_NS)
MT_MEMORY | MT_RW | MT_NS)
#ifdef SPD_tspd
#define ARM_MAP_TSP_SEC_MEM MAP_REGION_FLAT( \
#define ARM_MAP_TSP_SEC_MEM MAP_REGION_FLAT( \
TSP_SEC_MEM_BASE, \
TSP_SEC_MEM_BASE, \
TSP_SEC_MEM_SIZE, \
TSP_SEC_MEM_SIZE, \
MT_MEMORY | MT_RW | MT_SECURE)
MT_MEMORY | MT_RW | MT_SECURE)
#endif
#if ARM_BL31_IN_DRAM
#if ARM_BL31_IN_DRAM
#define ARM_MAP_BL31_SEC_DRAM MAP_REGION_FLAT( \
#define ARM_MAP_BL31_SEC_DRAM MAP_REGION_FLAT( \
...
...
plat/arm/board/common/board_css_common.c
View file @
085bac2b
...
@@ -33,7 +33,9 @@ const mmap_region_t plat_arm_mmap[] = {
...
@@ -33,7 +33,9 @@ const mmap_region_t plat_arm_mmap[] = {
CSS_MAP_DEVICE
,
CSS_MAP_DEVICE
,
SOC_CSS_MAP_DEVICE
,
SOC_CSS_MAP_DEVICE
,
ARM_MAP_NS_DRAM1
,
ARM_MAP_NS_DRAM1
,
#ifdef SPD_tspd
ARM_MAP_TSP_SEC_MEM
,
ARM_MAP_TSP_SEC_MEM
,
#endif
#ifdef SPD_opteed
#ifdef SPD_opteed
ARM_OPTEE_PAGEABLE_LOAD_MEM
,
ARM_OPTEE_PAGEABLE_LOAD_MEM
,
#endif
#endif
...
...
plat/arm/board/fvp/fvp_common.c
View file @
085bac2b
...
@@ -79,7 +79,9 @@ const mmap_region_t plat_arm_mmap[] = {
...
@@ -79,7 +79,9 @@ const mmap_region_t plat_arm_mmap[] = {
MAP_DEVICE0
,
MAP_DEVICE0
,
MAP_DEVICE1
,
MAP_DEVICE1
,
ARM_MAP_NS_DRAM1
,
ARM_MAP_NS_DRAM1
,
#ifdef SPD_tspd
ARM_MAP_TSP_SEC_MEM
,
ARM_MAP_TSP_SEC_MEM
,
#endif
#if TRUSTED_BOARD_BOOT
#if TRUSTED_BOARD_BOOT
/* To access the Root of Trust Public Key registers. */
/* To access the Root of Trust Public Key registers. */
MAP_DEVICE2
,
MAP_DEVICE2
,
...
...
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