Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196591
b: refs/heads/master
c: fe1691e
h: refs/heads/master
i:
  196589: 6e1a4e6
  196587: ba1fd16
  196583: 4190763
  196575: 73e3958
v: v3
  • Loading branch information
Joakim Tjernlund authored and Benjamin Herrenschmidt committed Apr 7, 2010
1 parent cf0dcdb commit b98ab9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: 43b5fefc24157def813154d1867d2960cefff837
refs/heads/master: fe1691e3f49d41452832f5aee2b952bd201ccab1
11 changes: 3 additions & 8 deletions trunk/arch/powerpc/kernel/head_8xx.S
Original file line number Diff line number Diff line change
Expand Up @@ -343,17 +343,14 @@ InstructionTLBMiss:
cmpwi cr0, r11, _PAGE_ACCESSED | _PAGE_PRESENT
bne- cr0, 2f

/* Clear PP lsb, 0x400 */
rlwinm r10, r10, 0, 22, 20

/* The Linux PTE won't go exactly into the MMU TLB.
* Software indicator bits 22 and 28 must be clear.
* Software indicator bits 21 and 28 must be clear.
* Software indicator bits 24, 25, 26, and 27 must be
* set. All other Linux PTE bits control the behavior
* of the MMU.
*/
li r11, 0x00f0
rlwimi r10, r11, 0, 24, 28 /* Set 24-27, clear 28 */
rlwimi r10, r11, 0, 0x07f8 /* Set 24-27, clear 21-23,28 */
DO_8xx_CPU6(0x2d80, r3)
mtspr SPRN_MI_RPN, r10 /* Update TLB entry */

Expand Down Expand Up @@ -444,9 +441,7 @@ DataStoreTLBMiss:

/* Honour kernel RO, User NA */
/* 0x200 == Extended encoding, bit 22 */
/* r11 = (r10 & _PAGE_USER) >> 2 */
rlwinm r11, r10, 32-2, 0x200
or r10, r11, r10
rlwimi r10, r10, 32-2, 0x200 /* Copy USER to bit 22, 0x200 */
/* r11 = (r10 & _PAGE_RW) >> 1 */
rlwinm r11, r10, 32-1, 0x200
or r10, r11, r10
Expand Down

0 comments on commit b98ab9e

Please sign in to comment.