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
48f4bcd2
Commit
48f4bcd2
authored
Aug 29, 2017
by
danh-arm
Committed by
GitHub
Aug 29, 2017
Browse files
Merge pull request #1068 from jenswi-linaro/optee_arm_plat
Optee arm platform common
parents
913c3842
810d9213
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/plat/arm/common/arm_def.h
View file @
48f4bcd2
...
@@ -97,16 +97,18 @@
...
@@ -97,16 +97,18 @@
#ifdef SPD_opteed
#ifdef SPD_opteed
/*
/*
* BL2 needs to map
3.5MB from 512KB offset in
TZC_DRAM1 in order to
* BL2 needs to map
4MB at the end of
TZC_DRAM1 in order to
* load/authenticate the trusted os extra image. The first 512KB of
TZC_DRAM1
* load/authenticate the trusted os extra image. The first 512KB of
* are reserved for trusted os (OPTEE). The extra image loading
for OPTEE is
*
TZC_DRAM1
are reserved for trusted os (OPTEE). The extra image loading
* paged image which only include the paging part using
virtual memory but
*
for OPTEE is
paged image which only include the paging part using
* without "init" data. OPTEE will copy the "init" data
(from pager image) to
*
virtual memory but
without "init" data. OPTEE will copy the "init" data
* the first 512KB of TZC_DRAM, and then copy the
extra image behind the "init"
*
(from pager image) to
the first 512KB of TZC_DRAM, and then copy the
* data.
*
extra image behind the "init"
data.
*/
*/
#define ARM_OPTEE_PAGEABLE_LOAD_BASE (ARM_AP_TZC_DRAM1_BASE + 0x80000)
#define ARM_OPTEE_PAGEABLE_LOAD_BASE (ARM_AP_TZC_DRAM1_BASE + \
#define ARM_OPTEE_PAGEABLE_LOAD_SIZE 0x380000
ARM_AP_TZC_DRAM1_SIZE - \
ARM_OPTEE_PAGEABLE_LOAD_SIZE)
#define ARM_OPTEE_PAGEABLE_LOAD_SIZE 0x400000
#define ARM_OPTEE_PAGEABLE_LOAD_MEM MAP_REGION_FLAT( \
#define ARM_OPTEE_PAGEABLE_LOAD_MEM MAP_REGION_FLAT( \
ARM_OPTEE_PAGEABLE_LOAD_BASE, \
ARM_OPTEE_PAGEABLE_LOAD_BASE, \
ARM_OPTEE_PAGEABLE_LOAD_SIZE, \
ARM_OPTEE_PAGEABLE_LOAD_SIZE, \
...
...
plat/arm/board/fvp/fvp_common.c
View file @
48f4bcd2
...
@@ -86,6 +86,9 @@ const mmap_region_t plat_arm_mmap[] = {
...
@@ -86,6 +86,9 @@ const mmap_region_t plat_arm_mmap[] = {
#endif
#endif
#if ARM_BL31_IN_DRAM
#if ARM_BL31_IN_DRAM
ARM_MAP_BL31_SEC_DRAM
,
ARM_MAP_BL31_SEC_DRAM
,
#endif
#ifdef SPD_opteed
ARM_OPTEE_PAGEABLE_LOAD_MEM
,
#endif
#endif
{
0
}
{
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