Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (100 commits) ARM: Eliminate decompressor -Dstatic= PIC hack ARM: 5958/1: ARM: U300: fix inverted clk round rate ARM: 5956/1: misplaced parentheses ARM: 5955/1: ep93xx: move timer defines into core.c and document ARM: 5954/1: ep93xx: move gpio interrupt support to gpio.c ARM: 5953/1: ep93xx: fix broken build of clock.c ARM: 5952/1: ARM: MM: Add ARM_L1_CACHE_SHIFT_6 for handle inside each ARCH Kconfig ARM: 5949/1: NUC900 add gpio virtual memory map ARM: 5948/1: Enable timer0 to time4 clock support for nuc910 ARM: 5940/2: ARM: MMCI: remove custom DBG macro and printk ARM: make_coherent(): fix problems with highpte, part 2 MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself ARM: 5945/1: ep93xx: include correct irq.h in core.c ARM: 5933/1: amba-pl011: support hardware flow control ARM: 5930/1: Add PKMAP area description to memory.txt. ARM: 5929/1: Add checks to detect overlap of memory regions. ARM: 5928/1: Change type of VMALLOC_END to unsigned long. ARM: 5927/1: Make delimiters of DMA area globally visibly. ARM: 5926/1: Add "Virtual kernel memory..." printout. ARM: 5920/1: OMAP4: Enable L2 Cache ... Fix up trivial conflict in arch/arm/mach-mx25/clock.c
This commit is contained in:
@@ -330,9 +330,9 @@ BTFIXUPDEF_CALL(void, mmu_info, struct seq_file *)
|
||||
#define FAULT_CODE_WRITE 0x2
|
||||
#define FAULT_CODE_USER 0x4
|
||||
|
||||
BTFIXUPDEF_CALL(void, update_mmu_cache, struct vm_area_struct *, unsigned long, pte_t)
|
||||
BTFIXUPDEF_CALL(void, update_mmu_cache, struct vm_area_struct *, unsigned long, pte_t *)
|
||||
|
||||
#define update_mmu_cache(vma,addr,pte) BTFIXUP_CALL(update_mmu_cache)(vma,addr,pte)
|
||||
#define update_mmu_cache(vma,addr,ptep) BTFIXUP_CALL(update_mmu_cache)(vma,addr,ptep)
|
||||
|
||||
BTFIXUPDEF_CALL(void, sparc_mapiorange, unsigned int, unsigned long,
|
||||
unsigned long, unsigned int)
|
||||
|
@@ -706,7 +706,7 @@ extern unsigned long find_ecache_flush_span(unsigned long size);
|
||||
#define mmu_unlockarea(vaddr, len) do { } while(0)
|
||||
|
||||
struct vm_area_struct;
|
||||
extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t);
|
||||
extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t *);
|
||||
|
||||
/* Encode and de-code a swap entry */
|
||||
#define __swp_type(entry) (((entry).val >> PAGE_SHIFT) & 0xffUL)
|
||||
|
@@ -378,7 +378,7 @@ asmlinkage void do_sun4c_fault(struct pt_regs *regs, int text_fault, int write,
|
||||
unsigned long address)
|
||||
{
|
||||
extern void sun4c_update_mmu_cache(struct vm_area_struct *,
|
||||
unsigned long,pte_t);
|
||||
unsigned long,pte_t *);
|
||||
extern pte_t *sun4c_pte_offset_kernel(pmd_t *,unsigned long);
|
||||
struct task_struct *tsk = current;
|
||||
struct mm_struct *mm = tsk->mm;
|
||||
@@ -455,7 +455,7 @@ asmlinkage void do_sun4c_fault(struct pt_regs *regs, int text_fault, int write,
|
||||
* on the CPU and doing a shrink_mmap() on this vma.
|
||||
*/
|
||||
sun4c_update_mmu_cache (find_vma(current->mm, address), address,
|
||||
*ptep);
|
||||
ptep);
|
||||
else
|
||||
do_sparc_fault(regs, text_fault, write, address);
|
||||
}
|
||||
|
@@ -289,12 +289,13 @@ static void flush_dcache(unsigned long pfn)
|
||||
}
|
||||
}
|
||||
|
||||
void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t pte)
|
||||
void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep)
|
||||
{
|
||||
struct mm_struct *mm;
|
||||
struct tsb *tsb;
|
||||
unsigned long tag, flags;
|
||||
unsigned long tsb_index, tsb_hash_shift;
|
||||
pte_t pte = *ptep;
|
||||
|
||||
if (tlb_type != hypervisor) {
|
||||
unsigned long pfn = pte_pfn(pte);
|
||||
|
@@ -62,7 +62,7 @@ pte_t *sun4c_pte_offset_kernel(pmd_t *dir, unsigned long address)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t pte)
|
||||
void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -694,7 +694,7 @@ extern void tsunami_setup_blockops(void);
|
||||
* The following code is a deadwood that may be necessary when
|
||||
* we start to make precise page flushes again. --zaitcev
|
||||
*/
|
||||
static void swift_update_mmu_cache(struct vm_area_struct * vma, unsigned long address, pte_t pte)
|
||||
static void swift_update_mmu_cache(struct vm_area_struct * vma, unsigned long address, pte_t *ptep)
|
||||
{
|
||||
#if 0
|
||||
static unsigned long last;
|
||||
@@ -703,10 +703,10 @@ static void swift_update_mmu_cache(struct vm_area_struct * vma, unsigned long ad
|
||||
|
||||
if (address == last) {
|
||||
val = srmmu_hwprobe(address);
|
||||
if (val != 0 && pte_val(pte) != val) {
|
||||
if (val != 0 && pte_val(*ptep) != val) {
|
||||
printk("swift_update_mmu_cache: "
|
||||
"addr %lx put %08x probed %08x from %p\n",
|
||||
address, pte_val(pte), val,
|
||||
address, pte_val(*ptep), val,
|
||||
__builtin_return_address(0));
|
||||
srmmu_flush_whole_tlb();
|
||||
}
|
||||
|
@@ -1887,7 +1887,7 @@ static void sun4c_check_pgt_cache(int low, int high)
|
||||
/* An experiment, turn off by default for now... -DaveM */
|
||||
#define SUN4C_PRELOAD_PSEG
|
||||
|
||||
void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t pte)
|
||||
void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep)
|
||||
{
|
||||
unsigned long flags;
|
||||
int pseg;
|
||||
@@ -1929,7 +1929,7 @@ void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, p
|
||||
start += PAGE_SIZE;
|
||||
}
|
||||
#ifndef SUN4C_PRELOAD_PSEG
|
||||
sun4c_put_pte(address, pte_val(pte));
|
||||
sun4c_put_pte(address, pte_val(*ptep));
|
||||
#endif
|
||||
local_irq_restore(flags);
|
||||
return;
|
||||
@@ -1940,7 +1940,7 @@ void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, p
|
||||
add_lru(entry);
|
||||
}
|
||||
|
||||
sun4c_put_pte(address, pte_val(pte));
|
||||
sun4c_put_pte(address, pte_val(*ptep));
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user