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
9e28b854
Commit
9e28b854
authored
Mar 23, 2021
by
Olivier Deprez
Committed by
TrustedFirmware Code Review
Mar 23, 2021
Browse files
Merge "SPM: Fix error codes size in SPMD handler" into integration
parents
e84ca571
e46b2fd2
Changes
1
Show whitespace changes
Inline
Side-by-side
services/std_svc/spmd/spmd_main.c
View file @
9e28b854
...
...
@@ -369,8 +369,8 @@ static uint64_t spmd_smc_forward(uint32_t smc_fid,
******************************************************************************/
static
uint64_t
spmd_ffa_error_return
(
void
*
handle
,
int
error_code
)
{
SMC_RET8
(
handle
,
FFA_ERROR
,
FFA_TARGET_INFO_MBZ
,
error_code
,
SMC_RET8
(
handle
,
(
uint32_t
)
FFA_ERROR
,
FFA_TARGET_INFO_MBZ
,
(
uint32_t
)
error_code
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
);
}
...
...
@@ -465,14 +465,16 @@ uint64_t spmd_smc_handler(uint32_t smc_fid,
(
ctx
->
state
==
SPMC_STATE_RESET
))
{
ret
=
FFA_ERROR_NOT_SUPPORTED
;
}
else
if
(
!
secure_origin
)
{
ret
=
MAKE_FFA_VERSION
(
spmc_attrs
.
major_version
,
spmc_attrs
.
minor_version
);
ret
=
MAKE_FFA_VERSION
(
spmc_attrs
.
major_version
,
spmc_attrs
.
minor_version
);
}
else
{
ret
=
MAKE_FFA_VERSION
(
FFA_VERSION_MAJOR
,
FFA_VERSION_MINOR
);
ret
=
MAKE_FFA_VERSION
(
FFA_VERSION_MAJOR
,
FFA_VERSION_MINOR
);
}
SMC_RET8
(
handle
,
ret
,
FFA_TARGET_INFO_MBZ
,
FFA_TARGET_INFO_MBZ
,
FFA_
P
AR
AM
_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
);
SMC_RET8
(
handle
,
(
uint32_t
)
ret
,
FFA_TARGET_INFO_MBZ
,
FFA_
T
AR
GET_INFO
_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
,
FFA_PARAM_MBZ
);
break
;
/* not reached */
case
FFA_FEATURES
:
...
...
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