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
c57abde6
Unverified
Commit
c57abde6
authored
Feb 04, 2019
by
Antonio Niño Díaz
Committed by
GitHub
Feb 04, 2019
Browse files
Merge pull request #1803 from sandrine-bailleux-arm/sb/arm-bl33-fixes
Fixes related to BL33 image on Arm platforms
parents
5735057d
d57d2b31
Changes
7
Show whitespace changes
Inline
Side-by-side
include/plat/arm/css/common/css_def.h
View file @
c57abde6
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
#endif
/* CSS_LOAD_SCP_IMAGES */
#endif
/* CSS_LOAD_SCP_IMAGES */
/* Load address of Non-Secure Image for CSS platform ports */
/* Load address of Non-Secure Image for CSS platform ports */
#define PLAT_ARM_NS_IMAGE_
OFF
SE
T
U(0xE0000000)
#define PLAT_ARM_NS_IMAGE_
BA
SE
U(0xE0000000)
/* TZC related constants */
/* TZC related constants */
#define PLAT_ARM_TZC_FILTERS TZC_400_REGION_ATTR_FILTER_BIT_ALL
#define PLAT_ARM_TZC_FILTERS TZC_400_REGION_ATTR_FILTER_BIT_ALL
...
...
plat/arm/board/fvp/include/platform_def.h
View file @
c57abde6
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
/*
/*
* Load address of BL33 for this platform port
* Load address of BL33 for this platform port
*/
*/
#define PLAT_ARM_NS_IMAGE_
OFF
SE
T
(ARM_DRAM1_BASE + UL(0x8000000))
#define PLAT_ARM_NS_IMAGE_
BA
SE
(ARM_DRAM1_BASE + UL(0x8000000))
/*
/*
* PLAT_ARM_MMAP_ENTRIES depends on the number of entries in the
* PLAT_ARM_MMAP_ENTRIES depends on the number of entries in the
...
...
plat/arm/common/aarch32/arm_bl2_mem_params_desc.c
View file @
c57abde6
...
@@ -75,12 +75,13 @@ static bl_mem_params_node_t bl2_mem_params_descs[] = {
...
@@ -75,12 +75,13 @@ static bl_mem_params_node_t bl2_mem_params_descs[] = {
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
VERSION_2
,
image_info_t
,
IMAGE_ATTRIB_SKIP_LOADING
),
VERSION_2
,
image_info_t
,
IMAGE_ATTRIB_SKIP_LOADING
),
#else
#else
.
ep_info
.
pc
=
PLAT_ARM_NS_IMAGE_
OFF
SE
T
,
.
ep_info
.
pc
=
PLAT_ARM_NS_IMAGE_
BA
SE
,
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
VERSION_2
,
image_info_t
,
0
),
VERSION_2
,
image_info_t
,
0
),
.
image_info
.
image_base
=
PLAT_ARM_NS_IMAGE_OFFSET
,
.
image_info
.
image_base
=
PLAT_ARM_NS_IMAGE_BASE
,
.
image_info
.
image_max_size
=
ARM_DRAM1_SIZE
,
.
image_info
.
image_max_size
=
ARM_DRAM1_BASE
+
ARM_DRAM1_SIZE
-
PLAT_ARM_NS_IMAGE_BASE
,
#endif
/* PRELOADED_BL33_BASE */
#endif
/* PRELOADED_BL33_BASE */
.
next_handoff_image_id
=
INVALID_IMAGE_ID
,
.
next_handoff_image_id
=
INVALID_IMAGE_ID
,
...
...
plat/arm/common/aarch64/arm_bl2_mem_params_desc.c
View file @
c57abde6
...
@@ -176,12 +176,13 @@ static bl_mem_params_node_t bl2_mem_params_descs[] = {
...
@@ -176,12 +176,13 @@ static bl_mem_params_node_t bl2_mem_params_descs[] = {
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
VERSION_2
,
image_info_t
,
IMAGE_ATTRIB_SKIP_LOADING
),
VERSION_2
,
image_info_t
,
IMAGE_ATTRIB_SKIP_LOADING
),
# else
# else
.
ep_info
.
pc
=
PLAT_ARM_NS_IMAGE_
OFF
SE
T
,
.
ep_info
.
pc
=
PLAT_ARM_NS_IMAGE_
BA
SE
,
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
VERSION_2
,
image_info_t
,
0
),
VERSION_2
,
image_info_t
,
0
),
.
image_info
.
image_base
=
PLAT_ARM_NS_IMAGE_OFFSET
,
.
image_info
.
image_base
=
PLAT_ARM_NS_IMAGE_BASE
,
.
image_info
.
image_max_size
=
ARM_DRAM1_SIZE
,
.
image_info
.
image_max_size
=
ARM_DRAM1_BASE
+
ARM_DRAM1_SIZE
-
PLAT_ARM_NS_IMAGE_BASE
,
# endif
/* PRELOADED_BL33_BASE */
# endif
/* PRELOADED_BL33_BASE */
.
next_handoff_image_id
=
INVALID_IMAGE_ID
,
.
next_handoff_image_id
=
INVALID_IMAGE_ID
,
...
...
plat/arm/common/arm_common.c
View file @
c57abde6
...
@@ -40,7 +40,7 @@ uintptr_t plat_get_ns_image_entrypoint(void)
...
@@ -40,7 +40,7 @@ uintptr_t plat_get_ns_image_entrypoint(void)
#ifdef PRELOADED_BL33_BASE
#ifdef PRELOADED_BL33_BASE
return
PRELOADED_BL33_BASE
;
return
PRELOADED_BL33_BASE
;
#else
#else
return
PLAT_ARM_NS_IMAGE_
OFF
SE
T
;
return
PLAT_ARM_NS_IMAGE_
BA
SE
;
#endif
#endif
}
}
...
...
plat/arm/common/arm_nor_psci_mem_protect.c
View file @
c57abde6
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* until the end of DRAM1.
* until the end of DRAM1.
* We limit the size of DRAM2 to 1 GB to avoid big delays while booting
* We limit the size of DRAM2 to 1 GB to avoid big delays while booting
*/
*/
#define DRAM1_NS_IMAGE_LIMIT (PLAT_ARM_NS_IMAGE_
OFF
SE
T
+ (32 << TWO_MB_SHIFT))
#define DRAM1_NS_IMAGE_LIMIT (PLAT_ARM_NS_IMAGE_
BA
SE + (32 << TWO_MB_SHIFT))
#define DRAM1_PROTECTED_SIZE (ARM_NS_DRAM1_END+1u - DRAM1_NS_IMAGE_LIMIT)
#define DRAM1_PROTECTED_SIZE (ARM_NS_DRAM1_END+1u - DRAM1_NS_IMAGE_LIMIT)
static
mem_region_t
arm_ram_ranges
[]
=
{
static
mem_region_t
arm_ram_ranges
[]
=
{
...
...
plat/xilinx/zynqmp/include/platform_def.h
View file @
c57abde6
...
@@ -66,9 +66,9 @@
...
@@ -66,9 +66,9 @@
* BL33 specific defines.
* BL33 specific defines.
******************************************************************************/
******************************************************************************/
#ifndef PRELOADED_BL33_BASE
#ifndef PRELOADED_BL33_BASE
# define PLAT_ARM_NS_IMAGE_
OFF
SE
T
0x8000000
# define PLAT_ARM_NS_IMAGE_
BA
SE 0x8000000
#else
#else
# define PLAT_ARM_NS_IMAGE_
OFF
SE
T
PRELOADED_BL33_BASE
# define PLAT_ARM_NS_IMAGE_
BA
SE PRELOADED_BL33_BASE
#endif
#endif
/*******************************************************************************
/*******************************************************************************
...
...
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