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
e5f3812e
"vscode:/vscode.git/clone" did not exist on "c686aa3dbb30704b2f8f52bf1aae19a7e41c23c1"
Commit
e5f3812e
authored
Jun 09, 2020
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Jun 09, 2020
Browse files
Merge "cpus: denver: disable cycle counter when event counting is prohibited" into integration
parents
02383c28
c5c1af0d
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/cpus/aarch64/denver.S
View file @
e5f3812e
/*
/*
*
Copyright
(
c
)
2015
-
2018
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2015
-
2018
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2020
,
NVIDIA
Corporation
.
All
rights
reserved
.
*
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
*/
...
@@ -33,6 +34,12 @@ vector_base workaround_bpflush_runtime_exceptions
...
@@ -33,6 +34,12 @@ vector_base workaround_bpflush_runtime_exceptions
.
macro
apply_workaround
.
macro
apply_workaround
stp
x0
,
x1
,
[
sp
,
#
CTX_GPREGS_OFFSET
+
CTX_GPREG_X0
]
stp
x0
,
x1
,
[
sp
,
#
CTX_GPREGS_OFFSET
+
CTX_GPREG_X0
]
/
*
Disable
cycle
counter
when
event
counting
is
prohibited
*/
mrs
x1
,
pmcr_el0
orr
x0
,
x1
,
#
PMCR_EL0_DP_BIT
msr
pmcr_el0
,
x0
isb
/
*
-------------------------------------------------
/
*
-------------------------------------------------
*
A
new
write
-
only
system
register
where
a
write
of
*
A
new
write
-
only
system
register
where
a
write
of
*
1
to
bit
0
will
cause
the
indirect
branch
predictor
*
1
to
bit
0
will
cause
the
indirect
branch
predictor
...
...
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