diff options
Diffstat (limited to 'arch/arm/mm/proc-sa110.S')
| -rw-r--r-- | arch/arm/mm/proc-sa110.S | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/arch/arm/mm/proc-sa110.S b/arch/arm/mm/proc-sa110.S index bbe10576c861..90a7e5279f29 100644 --- a/arch/arm/mm/proc-sa110.S +++ b/arch/arm/mm/proc-sa110.S | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
| 18 | #include <asm/assembler.h> | 18 | #include <asm/assembler.h> |
| 19 | #include <asm/asm-offsets.h> | 19 | #include <asm/asm-offsets.h> |
| 20 | #include <asm/elf.h> | 20 | #include <asm/hwcap.h> |
| 21 | #include <mach/hardware.h> | 21 | #include <mach/hardware.h> |
| 22 | #include <asm/pgtable-hwdef.h> | 22 | #include <asm/pgtable-hwdef.h> |
| 23 | #include <asm/pgtable.h> | 23 | #include <asm/pgtable.h> |
| @@ -153,24 +153,7 @@ ENTRY(cpu_sa110_switch_mm) | |||
| 153 | .align 5 | 153 | .align 5 |
| 154 | ENTRY(cpu_sa110_set_pte_ext) | 154 | ENTRY(cpu_sa110_set_pte_ext) |
| 155 | #ifdef CONFIG_MMU | 155 | #ifdef CONFIG_MMU |
| 156 | str r1, [r0], #-2048 @ linux version | 156 | armv3_set_pte_ext wc_disable=0 |
| 157 | |||
| 158 | eor r1, r1, #L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_WRITE | L_PTE_DIRTY | ||
| 159 | |||
| 160 | bic r2, r1, #PTE_SMALL_AP_MASK | ||
| 161 | bic r2, r2, #PTE_TYPE_MASK | ||
| 162 | orr r2, r2, #PTE_TYPE_SMALL | ||
| 163 | |||
| 164 | tst r1, #L_PTE_USER @ User? | ||
| 165 | orrne r2, r2, #PTE_SMALL_AP_URO_SRW | ||
| 166 | |||
| 167 | tst r1, #L_PTE_WRITE | L_PTE_DIRTY @ Write and Dirty? | ||
| 168 | orreq r2, r2, #PTE_SMALL_AP_UNO_SRW | ||
| 169 | |||
| 170 | tst r1, #L_PTE_PRESENT | L_PTE_YOUNG @ Present and Young? | ||
| 171 | movne r2, #0 | ||
| 172 | |||
| 173 | str r2, [r0] @ hardware version | ||
| 174 | mov r0, r0 | 157 | mov r0, r0 |
| 175 | mcr p15, 0, r0, c7, c10, 1 @ clean D entry | 158 | mcr p15, 0, r0, c7, c10, 1 @ clean D entry |
| 176 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 159 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
