Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=eddeeb32fe303910c58c4e3c27fde4b6f1503350
Commit:     eddeeb32fe303910c58c4e3c27fde4b6f1503350
Parent:     7a2eacb75946e0ebb81dfb36b50b5bec1c3cb50f
Author:     Stuart Menefy <[EMAIL PROTECTED]>
AuthorDate: Mon Nov 26 21:32:40 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 13:18:58 2008 +0900

    sh: Invalidate the TLB after applying PMB mappings.
    
    Signed-off-by: Stuart Menefy <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 arch/sh/mm/pmb.c                     |    6 ++++++
 include/asm-sh/cpu-sh4/mmu_context.h |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c
index 1d45b82..b632051 100644
--- a/arch/sh/mm/pmb.c
+++ b/arch/sh/mm/pmb.c
@@ -27,6 +27,7 @@
 #include <asm/pgtable.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
+#include <asm/mmu_context.h>
 
 #define NR_PMB_ENTRIES 16
 
@@ -329,6 +330,11 @@ static int __init pmb_init(void)
        /* PMB.SE and UB[7] */
        ctrl_outl((1 << 31) | (1 << 7), PMB_PASCR);
 
+       /* Flush out the TLB */
+       i =  ctrl_inl(MMUCR);
+       i |= MMUCR_TI;
+       ctrl_outl(i, MMUCR);
+
        back_to_P1();
 
        return 0;
diff --git a/include/asm-sh/cpu-sh4/mmu_context.h 
b/include/asm-sh/cpu-sh4/mmu_context.h
index 979acdd..fdd56e3 100644
--- a/include/asm-sh/cpu-sh4/mmu_context.h
+++ b/include/asm-sh/cpu-sh4/mmu_context.h
@@ -22,6 +22,8 @@
 #define MMU_UTLB_ADDRESS_ARRAY 0xF6000000
 #define MMU_PAGE_ASSOC_BIT     0x80
 
+#define MMUCR_TI               (1<<2)
+
 #ifdef CONFIG_X2TLB
 #define MMUCR_ME               (1 << 7)
 #else
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to