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
3aa2abbb
Commit
3aa2abbb
authored
Jul 14, 2020
by
Manish Pandey
Committed by
TrustedFirmware Code Review
Jul 14, 2020
Browse files
Merge "SPMD: fix boundary check if manifest is page aligned" into integration
parents
b5cfb045
fdd5f9e6
Changes
1
Show whitespace changes
Inline
Side-by-side
plat/common/plat_spmd_manifest.c
View file @
3aa2abbb
...
...
@@ -128,7 +128,13 @@ int plat_spm_core_manifest_load(spmc_manifest_attribute_t *manifest,
*/
pm_base
=
(
uintptr_t
)
pm_addr
;
pm_base_align
=
page_align
(
pm_base
,
UP
);
if
(
pm_base
==
pm_base_align
)
{
/* Page aligned */
mapped_size
=
PAGE_SIZE
;
}
else
{
mapped_size
=
pm_base_align
-
pm_base
;
}
/* Check space within the page at least maps the FDT header */
if
(
mapped_size
<
sizeof
(
struct
fdt_header
))
{
...
...
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