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
9831154f
Commit
9831154f
authored
9 years ago
by
danh-arm
Browse files
Options
Download
Plain Diff
Merge pull request #470 from danh-arm/dh/fwu-done-fix
FWU: Pass client cookie to FWU_SMC_UPDATE_DONE
parents
e551c5bf
1f37b944
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
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
bl1/bl1_fwu.c
+4
-4
bl1/bl1_fwu.c
include/plat/common/platform.h
+1
-1
include/plat/common/platform.h
plat/arm/board/juno/juno_bl1_setup.c
+1
-1
plat/arm/board/juno/juno_bl1_setup.c
plat/common/plat_bl1_common.c
+1
-1
plat/common/plat_bl1_common.c
with
7 additions
and
7 deletions
+7
-7
bl1/bl1_fwu.c
View file @
9831154f
...
@@ -63,7 +63,7 @@ static register_t bl1_fwu_image_resume(register_t image_param,
...
@@ -63,7 +63,7 @@ static register_t bl1_fwu_image_resume(register_t image_param,
unsigned
int
flags
);
unsigned
int
flags
);
static
int
bl1_fwu_sec_image_done
(
void
**
handle
,
static
int
bl1_fwu_sec_image_done
(
void
**
handle
,
unsigned
int
flags
);
unsigned
int
flags
);
__dead2
static
void
bl1_fwu_done
(
void
*
cookie
,
void
*
reserved
);
__dead2
static
void
bl1_fwu_done
(
void
*
client_
cookie
,
void
*
reserved
);
/*
/*
* This keeps track of last executed secure image id.
* This keeps track of last executed secure image id.
...
@@ -100,7 +100,7 @@ register_t bl1_fwu_smc_handler(unsigned int smc_fid,
...
@@ -100,7 +100,7 @@ register_t bl1_fwu_smc_handler(unsigned int smc_fid,
SMC_RET1
(
handle
,
bl1_fwu_sec_image_done
(
&
handle
,
flags
));
SMC_RET1
(
handle
,
bl1_fwu_sec_image_done
(
&
handle
,
flags
));
case
FWU_SMC_UPDATE_DONE
:
case
FWU_SMC_UPDATE_DONE
:
bl1_fwu_done
(
cookie
,
NULL
);
bl1_fwu_done
(
(
void
*
)
x1
,
NULL
);
/* We should never return from bl1_fwu_done() */
/* We should never return from bl1_fwu_done() */
default:
default:
...
@@ -495,13 +495,13 @@ static int bl1_fwu_sec_image_done(void **handle, unsigned int flags)
...
@@ -495,13 +495,13 @@ static int bl1_fwu_sec_image_done(void **handle, unsigned int flags)
* This function provides the opportunity for users to perform any
* This function provides the opportunity for users to perform any
* platform specific handling after the Firmware update is done.
* platform specific handling after the Firmware update is done.
******************************************************************************/
******************************************************************************/
__dead2
static
void
bl1_fwu_done
(
void
*
cookie
,
void
*
reserved
)
__dead2
static
void
bl1_fwu_done
(
void
*
client_
cookie
,
void
*
reserved
)
{
{
NOTICE
(
"BL1-FWU: *******FWU Process Completed*******
\n
"
);
NOTICE
(
"BL1-FWU: *******FWU Process Completed*******
\n
"
);
/*
/*
* Call platform done function.
* Call platform done function.
*/
*/
bl1_plat_fwu_done
(
cookie
,
reserved
);
bl1_plat_fwu_done
(
client_
cookie
,
reserved
);
assert
(
0
);
assert
(
0
);
}
}
This diff is collapsed.
Click to expand it.
include/plat/common/platform.h
View file @
9831154f
...
@@ -121,7 +121,7 @@ struct image_desc *bl1_plat_get_image_desc(unsigned int image_id);
...
@@ -121,7 +121,7 @@ struct image_desc *bl1_plat_get_image_desc(unsigned int image_id);
* The following functions are used by firmware update
* The following functions are used by firmware update
* feature and may optionally be overridden.
* feature and may optionally be overridden.
*/
*/
__dead2
void
bl1_plat_fwu_done
(
void
*
cookie
,
void
*
reserved
);
__dead2
void
bl1_plat_fwu_done
(
void
*
client_
cookie
,
void
*
reserved
);
/*******************************************************************************
/*******************************************************************************
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/juno/juno_bl1_setup.c
View file @
9831154f
...
@@ -72,7 +72,7 @@ void bl1_plat_set_ep_info(unsigned int image_id,
...
@@ -72,7 +72,7 @@ void bl1_plat_set_ep_info(unsigned int image_id,
/*******************************************************************************
/*******************************************************************************
* On Juno clear SYS_NVFLAGS and wait for watchdog reset.
* On Juno clear SYS_NVFLAGS and wait for watchdog reset.
******************************************************************************/
******************************************************************************/
__dead2
void
bl1_plat_fwu_done
(
void
*
cookie
,
void
*
r
svd_ptr
)
__dead2
void
bl1_plat_fwu_done
(
void
*
client_
cookie
,
void
*
r
eserved
)
{
{
unsigned
int
*
nv_flags_clr
=
(
unsigned
int
*
)
unsigned
int
*
nv_flags_clr
=
(
unsigned
int
*
)
(
V2M_SYSREGS_BASE
+
V2M_SYS_NVFLAGSCLR
);
(
V2M_SYSREGS_BASE
+
V2M_SYS_NVFLAGSCLR
);
...
...
This diff is collapsed.
Click to expand it.
plat/common/plat_bl1_common.c
View file @
9831154f
...
@@ -69,7 +69,7 @@ image_desc_t *bl1_plat_get_image_desc(unsigned int image_id)
...
@@ -69,7 +69,7 @@ image_desc_t *bl1_plat_get_image_desc(unsigned int image_id)
return
&
bl2_img_desc
;
return
&
bl2_img_desc
;
}
}
__dead2
void
bl1_plat_fwu_done
(
void
*
cookie
,
void
*
r
svd_ptr
)
__dead2
void
bl1_plat_fwu_done
(
void
*
client_
cookie
,
void
*
r
eserved
)
{
{
while
(
1
)
while
(
1
)
wfi
();
wfi
();
...
...
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