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
7b66a026
Commit
7b66a026
authored
9 years ago
by
danh-arm
Browse files
Options
Download
Plain Diff
Merge pull request #411 from jcastillo-arm/jc/plat_bl1_exit
Jc/plat bl1 exit
parents
4425448a
e3f67124
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
v1.2
v1.2-rc0
arm_cca_v0.2
arm_cca_v0.1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bl1/aarch64/bl1_exceptions.S
+2
-0
bl1/aarch64/bl1_exceptions.S
docs/porting-guide.md
+11
-0
docs/porting-guide.md
plat/common/aarch64/platform_helpers.S
+10
-0
plat/common/aarch64/platform_helpers.S
with
23 additions
and
0 deletions
+23
-0
bl1/aarch64/bl1_exceptions.S
View file @
7b66a026
...
...
@@ -207,6 +207,8 @@ func smc_handler64
bl
disable_mmu_icache_el3
tlbi
alle3
bl
bl1_plat_prepare_exit
ldp
x6
,
x7
,
[
x20
,
#(
ENTRY_POINT_INFO_ARGS_OFFSET
+
0x30
)]
ldp
x4
,
x5
,
[
x20
,
#(
ENTRY_POINT_INFO_ARGS_OFFSET
+
0x20
)]
ldp
x2
,
x3
,
[
x20
,
#(
ENTRY_POINT_INFO_ARGS_OFFSET
+
0x10
)]
...
...
This diff is collapsed.
Click to expand it.
docs/porting-guide.md
View file @
7b66a026
...
...
@@ -788,6 +788,17 @@ the entry point set by loader and also set the security state and SPSR which
represents the entry point system state for BL2.
### Function : bl1_plat_prepare_exit() [optional]
Argument : void
Return : void
This function is called prior to exiting BL1 in response to the
`RUN_IMAGE_SMC`
request raised by BL2. It should be used to perform platform specific clean up
or bookkeeping operations before transferring control to the next image. This
function runs with MMU disabled.
3.2 Boot Loader Stage 2 (BL2)
-----------------------------
...
...
This diff is collapsed.
Click to expand it.
plat/common/aarch64/platform_helpers.S
View file @
7b66a026
...
...
@@ -37,6 +37,7 @@
.
weak
plat_crash_console_putc
.
weak
plat_reset_handler
.
weak
plat_disable_acp
.
weak
bl1_plat_prepare_exit
#if !ENABLE_PLAT_COMPAT
.
globl
platform_get_core_pos
...
...
@@ -111,3 +112,12 @@ endfunc plat_reset_handler
func
plat_disable_acp
ret
endfunc
plat_disable_acp
/
*
-----------------------------------------------------
*
void
bl1_plat_prepare_exit
(
void
)
;
*
Called
before
exiting
BL1
.
Default
:
do
nothing
*
-----------------------------------------------------
*/
func
bl1_plat_prepare_exit
ret
endfunc
bl1_plat_prepare_exit
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