Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349144
b: refs/heads/master
c: d017234
h: refs/heads/master
v: v3
  • Loading branch information
Marc Zyngier authored and Will Deacon committed Jan 10, 2013
1 parent fe74c76 commit 0b4f72f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e484be1ccca3ea495db45900fd42aac8d49d754
refs/heads/master: d01723479e6a6c70c83295f7847477a016d5e14a
12 changes: 3 additions & 9 deletions trunk/arch/arm/kernel/hyp-stub.S
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ ENTRY(__hyp_stub_install_secondary)
* Eventually, CPU-specific code might be needed -- assume not for now
*
* This code relies on the "eret" instruction to synchronize the
* various coprocessor accesses.
* various coprocessor accesses. This is done when we switch to SVC
* (see safe_svcmode_maskall).
*/
@ Now install the hypervisor stub:
adr r7, __hyp_stub_vectors
Expand Down Expand Up @@ -155,14 +156,7 @@ THUMB( orr r7, #(1 << 30) ) @ HSCTLR.TE
1:
#endif

bic r7, r4, #MODE_MASK
orr r7, r7, #SVC_MODE
THUMB( orr r7, r7, #PSR_T_BIT )
msr spsr_cxsf, r7 @ This is SPSR_hyp.

__MSR_ELR_HYP(14) @ msr elr_hyp, lr
__ERET @ return, switching to SVC mode
@ The boot CPU mode is left in r4.
bx lr @ The boot CPU mode is left in r4.
ENDPROC(__hyp_stub_install_secondary)

__hyp_stub_do_trap:
Expand Down

0 comments on commit 0b4f72f

Please sign in to comment.