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
942ee0d8
Commit
942ee0d8
authored
Sep 05, 2017
by
davidcunado-arm
Committed by
GitHub
Sep 05, 2017
Browse files
Merge pull request #1083 from soby-mathew/sm/fix_optee_map
Fix BL2 memory map when OP-TEE is the Secure Payload
parents
827cd9f1
b3ba6fda
Changes
3
Show whitespace changes
Inline
Side-by-side
include/plat/arm/common/arm_def.h
View file @
942ee0d8
...
...
@@ -113,6 +113,15 @@
ARM_OPTEE_PAGEABLE_LOAD_BASE, \
ARM_OPTEE_PAGEABLE_LOAD_SIZE, \
MT_MEMORY | MT_RW | MT_SECURE)
/*
* Map the memory for the OP-TEE core (also known as OP-TEE pager when paging
* support is enabled).
*/
#define ARM_MAP_OPTEE_CORE_MEM MAP_REGION_FLAT( \
BL32_BASE, \
BL32_LIMIT - BL32_BASE, \
MT_MEMORY | MT_RW | MT_SECURE)
#endif
/* SPD_opteed */
#define ARM_NS_DRAM1_BASE ARM_DRAM1_BASE
...
...
plat/arm/board/common/board_css_common.c
View file @
942ee0d8
...
...
@@ -37,6 +37,7 @@ const mmap_region_t plat_arm_mmap[] = {
ARM_MAP_TSP_SEC_MEM
,
#endif
#ifdef SPD_opteed
ARM_MAP_OPTEE_CORE_MEM
,
ARM_OPTEE_PAGEABLE_LOAD_MEM
,
#endif
{
0
}
...
...
plat/arm/board/fvp/fvp_common.c
View file @
942ee0d8
...
...
@@ -90,6 +90,7 @@ const mmap_region_t plat_arm_mmap[] = {
ARM_MAP_BL31_SEC_DRAM
,
#endif
#ifdef SPD_opteed
ARM_MAP_OPTEE_CORE_MEM
,
ARM_OPTEE_PAGEABLE_LOAD_MEM
,
#endif
{
0
}
...
...
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