Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43391
b: refs/heads/master
c: 0e5fdca
h: refs/heads/master
i:
  43389: 06ef602
  43387: bfa4c02
  43383: f116e41
  43375: 58ad10b
  43359: baa6741
  43327: 7c15dbb
  43263: 1dbcf74
v: v3
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Dec 1, 2006
1 parent 6c4239b commit c5b2420
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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: e520a36de2f7985df5ef2e84a9f6d2608ecc6f25
refs/heads/master: 0e5fdca7622eb950f42f97a1970670e00a739175
2 changes: 1 addition & 1 deletion trunk/arch/arm/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static void __init build_mem_type_table(void)
if (arch_is_coherent()) {
if (cpu_is_xsc3()) {
mem_types[MT_MEMORY].prot_sect |= PMD_SECT_S;
mem_types[MT_MEMORY].prot_pte |= L_PTE_COHERENT;
mem_types[MT_MEMORY].prot_pte |= L_PTE_SHARED;
}
}

Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/arm/mm/proc-xsc3.S
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,10 @@ ENTRY(cpu_xsc3_switch_mm)
ENTRY(cpu_xsc3_set_pte)
str r1, [r0], #-2048 @ linux version

bic r2, r1, #0xdf0 @ Keep C, B, coherency bits
bic r2, r1, #0xff0 @ Keep C, B bits
orr r2, r2, #PTE_TYPE_EXT @ extended page
tst r1, #L_PTE_SHARED @ Shared?
orrne r2, r2, #0x200

eor r3, r1, #L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_WRITE | L_PTE_DIRTY

Expand Down
3 changes: 1 addition & 2 deletions trunk/include/asm-arm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ extern void __pgd_error(const char *file, int line, unsigned long val);
#define L_PTE_WRITE (1 << 5)
#define L_PTE_EXEC (1 << 6)
#define L_PTE_DIRTY (1 << 7)
#define L_PTE_COHERENT (1 << 9) /* I/O coherent (xsc3) */
#define L_PTE_SHARED (1 << 10) /* shared between CPUs (v6) */
#define L_PTE_SHARED (1 << 10) /* shared(v6), coherent(xsc3) */
#define L_PTE_ASID (1 << 11) /* non-global (use ASID, v6) */

#ifndef __ASSEMBLY__
Expand Down

0 comments on commit c5b2420

Please sign in to comment.