Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31158
b: refs/heads/master
c: 6d7c466
h: refs/heads/master
v: v3
  • Loading branch information
Jimi Xenidis authored and Paul Mackerras committed Jun 28, 2006
1 parent ccff531 commit 95f9bf6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: 70c3967d4f8029f3d53323a9f0490df61d8cb77d
refs/heads/master: 6d7c466292fc7c90bb160c1c7df74035c7c12595
14 changes: 12 additions & 2 deletions trunk/arch/powerpc/kernel/cpu_setup_power4.S
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ _GLOBAL(__save_cpu_setup)
cmpwi r0,0x44
bne 2f

1: /* Save HID0,1,4 and 5 */
1: /* skip if not running in HV mode */
mfmsr r0
rldicl. r0,r0,4,63
beq 2f

/* Save HID0,1,4 and 5 */
mfspr r3,SPRN_HID0
std r3,CS_HID0(r5)
mfspr r3,SPRN_HID1
Expand Down Expand Up @@ -159,7 +164,12 @@ _GLOBAL(__restore_cpu_setup)
cmpwi r0,0x44
bnelr

1: /* Before accessing memory, we make sure rm_ci is clear */
1: /* skip if not running in HV mode */
mfmsr r0
rldicl. r0,r0,4,63
beqlr

/* Before accessing memory, we make sure rm_ci is clear */
li r0,0
mfspr r3,SPRN_HID4
rldimi r3,r0,40,23 /* clear bit 23 (rm_ci) */
Expand Down

0 comments on commit 95f9bf6

Please sign in to comment.