]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Undo of Imre Deak's v6 prot bits
authorTony Lindgren <tony@atomide.com>
Mon, 5 Sep 2005 06:37:28 +0000 (09:37 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 5 Sep 2005 06:37:28 +0000 (09:37 +0300)
This is not needed any longer with RMK's patch.

arch/arm/mm/proc-v6.S

index bd240189834a440b6f87dd96363e0313f91148b3..139a38670c5d07d35d37150adcd6358f64aefb22 100644 (file)
@@ -123,11 +123,11 @@ ENTRY(cpu_v6_switch_mm)
  *     Permissions:
  *       YUWD  APX AP1 AP0     SVC     User
  *       0xxx   0   0   0      no acc  no acc
+ *       100x   1   0   1      r/o     no acc
  *       10x0   1   0   1      r/o     no acc
- *       1001   0   0   1      r/w     no acc
  *       1011   0   0   1      r/w     no acc
- *       11x0   1   1   0      r/o     r/o
- *       1101   0   1   0      r/w     r/o
+ *       110x   0   1   0      r/w     r/o
+ *       11x0   0   1   0      r/w     r/o
  *       1111   0   1   1      r/w     r/w
  */
 ENTRY(cpu_v6_set_pte)
@@ -137,16 +137,15 @@ ENTRY(cpu_v6_set_pte)
        bic     r2, r2, #0x00000003
        orr     r2, r2, #PTE_EXT_AP0 | 2
 
-       tst     r1, #L_PTE_DIRTY
+       tst     r1, #L_PTE_WRITE
+       tstne   r1, #L_PTE_DIRTY
        orreq   r2, r2, #PTE_EXT_APX
 
        tst     r1, #L_PTE_USER
        orrne   r2, r2, #PTE_EXT_AP1
-       bicne   r2, r2, #PTE_EXT_AP0
-       tstne   r1, #L_PTE_WRITE
-       tstne   r1, #L_PTE_DIRTY
-       eorne   r2, r2, #PTE_EXT_AP0
+       tstne   r2, #PTE_EXT_APX
+       bicne   r2, r2, #PTE_EXT_APX | PTE_EXT_AP0
+
        tst     r1, #L_PTE_YOUNG
        biceq   r2, r2, #PTE_EXT_APX | PTE_EXT_AP_MASK