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
c57abde6
Unverified
Commit
c57abde6
authored
6 years ago
by
Antonio Niño Díaz
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
include/plat/arm/css/common/css_def.h
+1
-1
include/plat/arm/css/common/css_def.h
plat/arm/board/fvp/include/platform_def.h
+1
-1
plat/arm/board/fvp/include/platform_def.h
plat/arm/common/aarch32/arm_bl2_mem_params_desc.c
+4
-3
plat/arm/common/aarch32/arm_bl2_mem_params_desc.c
plat/arm/common/aarch64/arm_bl2_mem_params_desc.c
+4
-3
plat/arm/common/aarch64/arm_bl2_mem_params_desc.c
plat/arm/common/arm_common.c
+1
-1
plat/arm/common/arm_common.c
plat/arm/common/arm_nor_psci_mem_protect.c
+1
-1
plat/arm/common/arm_nor_psci_mem_protect.c
plat/xilinx/zynqmp/include/platform_def.h
+2
-2
plat/xilinx/zynqmp/include/platform_def.h
with
14 additions
and
12 deletions
+14
-12
include/plat/arm/css/common/css_def.h
View file @
c57abde6
...
...
@@ -183,7 +183,7 @@
#endif
/* CSS_LOAD_SCP_IMAGES */
/* 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 */
#define PLAT_ARM_TZC_FILTERS TZC_400_REGION_ATTR_FILTER_BIT_ALL
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/fvp/include/platform_def.h
View file @
c57abde6
...
...
@@ -53,7 +53,7 @@
/*
* 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
...
...
This diff is collapsed.
Click to expand it.
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[] = {
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
VERSION_2
,
image_info_t
,
IMAGE_ATTRIB_SKIP_LOADING
),
#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
,
VERSION_2
,
image_info_t
,
0
),
.
image_info
.
image_base
=
PLAT_ARM_NS_IMAGE_OFFSET
,
.
image_info
.
image_max_size
=
ARM_DRAM1_SIZE
,
.
image_info
.
image_base
=
PLAT_ARM_NS_IMAGE_BASE
,
.
image_info
.
image_max_size
=
ARM_DRAM1_BASE
+
ARM_DRAM1_SIZE
-
PLAT_ARM_NS_IMAGE_BASE
,
#endif
/* PRELOADED_BL33_BASE */
.
next_handoff_image_id
=
INVALID_IMAGE_ID
,
...
...
This diff is collapsed.
Click to expand it.
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[] = {
SET_STATIC_PARAM_HEAD
(
image_info
,
PARAM_EP
,
VERSION_2
,
image_info_t
,
IMAGE_ATTRIB_SKIP_LOADING
),
# 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
,
VERSION_2
,
image_info_t
,
0
),
.
image_info
.
image_base
=
PLAT_ARM_NS_IMAGE_OFFSET
,
.
image_info
.
image_max_size
=
ARM_DRAM1_SIZE
,
.
image_info
.
image_base
=
PLAT_ARM_NS_IMAGE_BASE
,
.
image_info
.
image_max_size
=
ARM_DRAM1_BASE
+
ARM_DRAM1_SIZE
-
PLAT_ARM_NS_IMAGE_BASE
,
# endif
/* PRELOADED_BL33_BASE */
.
next_handoff_image_id
=
INVALID_IMAGE_ID
,
...
...
This diff is collapsed.
Click to expand it.
plat/arm/common/arm_common.c
View file @
c57abde6
...
...
@@ -40,7 +40,7 @@ uintptr_t plat_get_ns_image_entrypoint(void)
#ifdef PRELOADED_BL33_BASE
return
PRELOADED_BL33_BASE
;
#else
return
PLAT_ARM_NS_IMAGE_
OFF
SE
T
;
return
PLAT_ARM_NS_IMAGE_
BA
SE
;
#endif
}
...
...
This diff is collapsed.
Click to expand it.
plat/arm/common/arm_nor_psci_mem_protect.c
View file @
c57abde6
...
...
@@ -21,7 +21,7 @@
* until the end of DRAM1.
* 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)
static
mem_region_t
arm_ram_ranges
[]
=
{
...
...
This diff is collapsed.
Click to expand it.
plat/xilinx/zynqmp/include/platform_def.h
View file @
c57abde6
...
...
@@ -66,9 +66,9 @@
* BL33 specific defines.
******************************************************************************/
#ifndef PRELOADED_BL33_BASE
# define PLAT_ARM_NS_IMAGE_
OFF
SE
T
0x8000000
# define PLAT_ARM_NS_IMAGE_
BA
SE 0x8000000
#else
# define PLAT_ARM_NS_IMAGE_
OFF
SE
T
PRELOADED_BL33_BASE
# define PLAT_ARM_NS_IMAGE_
BA
SE PRELOADED_BL33_BASE
#endif
/*******************************************************************************
...
...
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