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
615cd166
Commit
615cd166
authored
Aug 30, 2017
by
danh-arm
Committed by
GitHub
Aug 30, 2017
Browse files
Merge pull request #1075 from robertovargas-arm/fix_el3_payload
Don't use zero_normalmem in bl2_platform_setup
parents
bd359234
a1f5a9e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/arm/css/common/css_bl2_setup.c
View file @
615cd166
...
...
@@ -74,11 +74,12 @@ void bl2_platform_setup(void)
* at the beginning of the Trusted SRAM. It is is overwritten before
* reaching this function. We need to restore this data, as if the
* target had just come out of reset. This implies:
* - zeroing the first 128 bytes of Trusted SRAM;
* - zeroing the first 128 bytes of Trusted SRAM using zeromem instead
* of zero_normalmem since this is device memory.
* - restoring the SCP boot configuration.
*/
VERBOSE
(
"BL2: Restoring SCP reset data in Trusted SRAM
\n
"
);
zero
_normal
mem
((
void
*
)
ARM_
TRUST
ED_
S
RAM_BASE
,
128
);
zeromem
((
void
*
)
ARM_
SHAR
ED_RAM_BASE
,
128
);
mmio_write_32
(
SCP_BOOT_CFG_ADDR
,
scp_boot_config
);
}
#endif
/* EL3_PAYLOAD_BASE */
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