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
efc759ad
Commit
efc759ad
authored
8 years ago
by
danh-arm
Committed by
GitHub
8 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #686 from danh-arm/dh/remove-inv-dcache-after-auth
Remove dcache invalidation after image authentication
parents
937108a0
ad4494dc
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
v1.4
v1.4-rc0
v1.3
v1.3_rc2
v1.3_rc1
v1.3-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/bl_common.c
+12
-6
common/bl_common.c
with
12 additions
and
6 deletions
+12
-6
common/bl_common.c
View file @
efc759ad
...
...
@@ -321,12 +321,16 @@ int load_image(meminfo_t *mem_layout,
(
void
*
)
image_base
,
image_size
);
}
#if !TRUSTED_BOARD_BOOT
/*
* File has been successfully loaded.
* Flush the image in Trusted SRAM so that the next exception level can
* see it.
* Flush the image to main memory so that it can be executed later by
* any CPU, regardless of cache and MMU state.
* When TBB is enabled the image is flushed later, after image
* authentication.
*/
flush_dcache_range
(
image_base
,
image_size
);
#endif
/* TRUSTED_BOARD_BOOT */
INFO
(
"Image id=%u loaded at address %p, size = 0x%zx
\n
"
,
image_id
,
(
void
*
)
image_base
,
image_size
);
...
...
@@ -388,10 +392,12 @@ int load_auth_image(meminfo_t *mem_layout,
image_data
->
image_size
);
return
-
EAUTH
;
}
/* After working with data, invalidate the data cache */
inv_dcache_range
(
image_data
->
image_base
,
(
size_t
)
image_data
->
image_size
);
/*
* File has been successfully loaded and authenticated.
* Flush the image to main memory so that it can be executed later by
* any CPU, regardless of cache and MMU state.
*/
flush_dcache_range
(
image_data
->
image_base
,
image_data
->
image_size
);
#endif
/* TRUSTED_BOARD_BOOT */
return
0
;
...
...
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