Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77807
b: refs/heads/master
c: eddeeb3
h: refs/heads/master
i:
  77805: 081a018
  77803: b76dab6
  77799: ca5782b
  77791: ce2cd14
v: v3
  • Loading branch information
Stuart Menefy authored and Paul Mundt committed Jan 28, 2008
1 parent 280ccfe commit 51ec188
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7a2eacb75946e0ebb81dfb36b50b5bec1c3cb50f
refs/heads/master: eddeeb32fe303910c58c4e3c27fde4b6f1503350
6 changes: 6 additions & 0 deletions trunk/arch/sh/mm/pmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-sh/cpu-sh4/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51ec188

Please sign in to comment.