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
578b3ad7
Commit
578b3ad7
authored
Jul 28, 2016
by
danh-arm
Committed by
GitHub
Jul 28, 2016
Browse files
Merge pull request #673 from soby-mathew/sm/coverity_issue
Improve debug assertion for runtime svc number
parents
63ad1ef4
5e5e4162
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/runtime_svc.c
View file @
578b3ad7
...
@@ -87,7 +87,8 @@ void runtime_svc_init(void)
...
@@ -87,7 +87,8 @@ void runtime_svc_init(void)
int
rc
=
0
,
index
,
start_idx
,
end_idx
;
int
rc
=
0
,
index
,
start_idx
,
end_idx
;
/* Assert the number of descriptors detected are less than maximum indices */
/* Assert the number of descriptors detected are less than maximum indices */
assert
((
RT_SVC_DECS_NUM
>=
0
)
&&
(
RT_SVC_DECS_NUM
<
MAX_RT_SVCS
));
assert
((
RT_SVC_DESCS_END
>=
RT_SVC_DESCS_START
)
&&
(
RT_SVC_DECS_NUM
<
MAX_RT_SVCS
));
/* If no runtime services are implemented then simply bail out */
/* If no runtime services are implemented then simply bail out */
if
(
RT_SVC_DECS_NUM
==
0
)
if
(
RT_SVC_DECS_NUM
==
0
)
...
...
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