projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4aa937
)
ARM: hyp: initialize CNTVOFF to zero
author
Marc Zyngier
<
[email protected]
>
Wed, 30 Jan 2013 18:17:49 +0000
(18:17 +0000)
committer
Mark Rutland
<
[email protected]
>
Fri, 7 Jun 2013 09:20:27 +0000
(10:20 +0100)
In order to be able to use the virtual counter in a safe way,
make sure it is initialized to zero before dropping to SVC.
Signed-off-by: Marc Zyngier <
[email protected]
>
Signed-off-by: Mark Rutland <
[email protected]
>
Acked-by: Santosh Shilimkar <
[email protected]
>
Cc: Dave Martin <
[email protected]
>
arch/arm/kernel/hyp-stub.S
patch
|
blob
|
history
diff --git
a/arch/arm/kernel/hyp-stub.S
b/arch/arm/kernel/hyp-stub.S
index 1315c4ccfa563a04928347ec560ed618dcd3f958..dbe21107945a53fd822614d3d02cd951277cbc23 100644
(file)
--- a/
arch/arm/kernel/hyp-stub.S
+++ b/
arch/arm/kernel/hyp-stub.S
@@
-153,6
+153,8
@@
THUMB( orr r7, #(1 << 30) ) @ HSCTLR.TE
mrc p15, 4, r7, c14, c1, 0 @ CNTHCTL
orr r7, r7, #3 @ PL1PCEN | PL1PCTEN
mcr p15, 4, r7, c14, c1, 0 @ CNTHCTL
+ mov r7, #0
+ mcrr p15, 4, r7, r7, c14 @ CNTVOFF
1:
#endif