Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333736
b: refs/heads/master
c: 8ec58be
h: refs/heads/master
v: v3
  • Loading branch information
Marc Zyngier committed Sep 19, 2012
1 parent 4a35f5d commit 9a1907c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b6728d4189d14c19f384d5ec6087276e7c196d8
refs/heads/master: 8ec58be9f3ff2ad4a4d7bde8f48b4a4c406768e7
13 changes: 13 additions & 0 deletions trunk/arch/arm/kernel/hyp-stub.S
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,19 @@ THUMB( orr r7, #(1 << 30) ) @ HSCTLR.TE
and r7, #0x1f @ Preserve HPMN
mcr p15, 4, r7, c1, c1, 1 @ HDCR

#if !defined(ZIMAGE) && defined(CONFIG_ARM_ARCH_TIMER)
@ make CNTP_* and CNTPCT accessible from PL1
mrc p15, 0, r7, c0, c1, 1 @ ID_PFR1
lsr r7, #16
and r7, #0xf
cmp r7, #1
bne 1f
mrc p15, 4, r7, c14, c1, 0 @ CNTHCTL
orr r7, r7, #3 @ PL1PCEN | PL1PCTEN
mcr p15, 4, r7, c14, c1, 0 @ CNTHCTL
1:
#endif

bic r7, r4, #MODE_MASK
orr r7, r7, #SVC_MODE
THUMB( orr r7, r7, #PSR_T_BIT )
Expand Down

0 comments on commit 9a1907c

Please sign in to comment.