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
5ff5a6d9
Unverified
Commit
5ff5a6d9
authored
7 years ago
by
davidcunado-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1270 from antonio-nino-diaz-arm/an/smc-unknown
Redefine SMC_UNK as -1 instead of 0xFFFFFFFF
parents
601abdba
4abd7fa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bl31/aarch64/runtime_exceptions.S
+2
-2
bl31/aarch64/runtime_exceptions.S
include/lib/smcc.h
+3
-3
include/lib/smcc.h
with
5 additions
and
5 deletions
+5
-5
bl31/aarch64/runtime_exceptions.S
View file @
5ff5a6d9
...
...
@@ -390,12 +390,12 @@ smc_unknown:
*
content
)
.
Either
way
,
we
aren
't leaking any secure information
*
through
them
.
*/
mov
w
0
,
#
SMC_UNK
mov
x
0
,
#
SMC_UNK
b
restore_gp_registers_callee_eret
smc_prohibited
:
ldr
x30
,
[
sp
,
#
CTX_GPREGS_OFFSET
+
CTX_GPREG_LR
]
mov
w
0
,
#
SMC_UNK
mov
x
0
,
#
SMC_UNK
eret
rt_svc_fw_critical_error
:
...
...
This diff is collapsed.
Click to expand it.
include/lib/smcc.h
View file @
5ff5a6d9
...
...
@@ -35,13 +35,13 @@
#define SMC_64 U(1)
#define SMC_32 U(0)
#define SMC_OK U(0)
#define SMC_UNK
U(0xffffffff)
#define SMC_UNK
-1
#define SMC_TYPE_FAST ULL(1)
#if !ERROR_DEPRECATED
#define SMC_TYPE_STD ULL(0)
#endif
#define SMC_TYPE_YIELD U(0)
#define SMC_PREEMPTED
U(0xfffffffe)
#define SMC_PREEMPTED
-2
/*******************************************************************************
* Owning entity number definitions inside the function id as per the SMC
* calling convention
...
...
@@ -99,7 +99,7 @@
*/
#define DEFINE_SVC_UUID(_name, _tl, _tm, _th, _cl, _ch, \
_n0, _n1, _n2, _n3, _n4, _n5) \
CASSERT(_tl != SMC_UNK, invalid_svc_uuid);\
CASSERT(
(uint32_t)(
_tl
)
!=
(uint32_t)
SMC_UNK, invalid_svc_uuid);\
static const uuid_t _name = { \
_tl, _tm, _th, _cl, _ch, \
{ _n0, _n1, _n2, _n3, _n4, _n5 } \
...
...
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