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
577aca86
Commit
577aca86
authored
Mar 20, 2020
by
Mark Dykes
Committed by
TrustedFirmware Code Review
Mar 20, 2020
Browse files
Merge "Bug fix: Protect TSP prints with lock" into integration
parents
6e7b2036
ae7b922d
Changes
1
Show whitespace changes
Inline
Side-by-side
bl32/tsp/tsp_main.c
View file @
577aca86
...
...
@@ -371,12 +371,16 @@ tsp_args_t *tsp_smc_handler(uint64_t func,
tsp_stats
[
linear_id
].
smc_count
++
;
tsp_stats
[
linear_id
].
eret_count
++
;
#if LOG_LEVEL >= LOG_LEVEL_INFO
spin_lock
(
&
console_lock
);
INFO
(
"TSP: cpu 0x%lx received %s smc 0x%llx
\n
"
,
read_mpidr
(),
((
func
>>
31
)
&
1
)
==
1
?
"fast"
:
"yielding"
,
func
);
INFO
(
"TSP: cpu 0x%lx: %d smcs, %d erets
\n
"
,
read_mpidr
(),
tsp_stats
[
linear_id
].
smc_count
,
tsp_stats
[
linear_id
].
eret_count
);
spin_unlock
(
&
console_lock
);
#endif
/* Render secure services and obtain results here */
results
[
0
]
=
arg1
;
...
...
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