git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
arch
/
ppc
/
mm
/
fsl_booke_mmu.c
diff --git
a/arch/ppc/mm/fsl_booke_mmu.c
b/arch/ppc/mm/fsl_booke_mmu.c
index
36233bd
..
5d581bb
100644
(file)
--- a/
arch/ppc/mm/fsl_booke_mmu.c
+++ b/
arch/ppc/mm/fsl_booke_mmu.c
@@
-1,5
+1,5
@@
/*
/*
- * Modifications by Kumar Gala (
kumar.gala@freescale.com
) to support
+ * Modifications by Kumar Gala (
galak@kernel.crashing.org
) to support
* E500 Book E processors.
*
* Copyright 2004 Freescale Semiconductor, Inc
* E500 Book E processors.
*
* Copyright 2004 Freescale Semiconductor, Inc
@@
-41,7
+41,6
@@
#include <linux/vmalloc.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/vmalloc.h>
#include <linux/init.h>
#include <linux/delay.h>
-#include <linux/bootmem.h>
#include <linux/highmem.h>
#include <asm/pgalloc.h>
#include <linux/highmem.h>
#include <asm/pgalloc.h>
@@
-64,6
+63,8
@@
extern unsigned long total_lowmem;
extern unsigned long __max_low_memory;
#define MAX_LOW_MEM CONFIG_LOWMEM_SIZE
extern unsigned long __max_low_memory;
#define MAX_LOW_MEM CONFIG_LOWMEM_SIZE
+#define NUM_TLBCAMS (16)
+
struct tlbcam {
u32 MAS0;
u32 MAS1;
struct tlbcam {
u32 MAS0;
u32 MAS1;
@@
-124,7
+125,7
@@
void settlbcam(int index, unsigned long virt, phys_addr_t phys,
flags |= _PAGE_COHERENT;
#endif
flags |= _PAGE_COHERENT;
#endif
- TLBCAM[index].MAS0 = MAS0_TLBSEL(1) | MAS0_ESEL(index);
+ TLBCAM[index].MAS0 = MAS0_TLBSEL(1) | MAS0_ESEL(index)
| MAS0_NV(index+1)
;
TLBCAM[index].MAS1 = MAS1_VALID | MAS1_IPROT | MAS1_TSIZE(tsize) | MAS1_TID(pid);
TLBCAM[index].MAS2 = virt & PAGE_MASK;
TLBCAM[index].MAS1 = MAS1_VALID | MAS1_IPROT | MAS1_TSIZE(tsize) | MAS1_TID(pid);
TLBCAM[index].MAS2 = virt & PAGE_MASK;