404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.140.188.79: ~ $
/*
 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
 * Copyright (C) 2008-2009 PetaLogix
 * Copyright (C) 2006 Atmark Techno, Inc.
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License. See the file "COPYING" in the main directory of this archive
 * for more details.
 */

#ifndef _ASM_MICROBLAZE_TLBFLUSH_H
#define _ASM_MICROBLAZE_TLBFLUSH_H

#ifdef CONFIG_MMU

#include <linux/sched.h>
#include <linux/threads.h>
#include <asm/processor.h>	/* For TASK_SIZE */
#include <asm/mmu.h>
#include <asm/page.h>
#include <asm/pgalloc.h>

extern void _tlbie(unsigned long address);
extern void _tlbia(void);

#define __tlbia()	{ preempt_disable(); _tlbia(); preempt_enable(); }
#define __tlbie(x)	{ _tlbie(x); }

static inline void local_flush_tlb_all(void)
	{ __tlbia(); }
static inline void local_flush_tlb_mm(struct mm_struct *mm)
	{ __tlbia(); }
static inline void local_flush_tlb_page(struct vm_area_struct *vma,
				unsigned long vmaddr)
	{ __tlbie(vmaddr); }
static inline void local_flush_tlb_range(struct vm_area_struct *vma,
		unsigned long start, unsigned long end)
	{ __tlbia(); }

#define flush_tlb_kernel_range(start, end)	do { } while (0)

#define update_mmu_cache(vma, addr, ptep)	do { } while (0)

#define flush_tlb_all local_flush_tlb_all
#define flush_tlb_mm local_flush_tlb_mm
#define flush_tlb_page local_flush_tlb_page
#define flush_tlb_range local_flush_tlb_range

/*
 * This is called in munmap when we have freed up some page-table
 * pages.  We don't need to do anything here, there's nothing special
 * about our page-table pages.  -- paulus
 */
static inline void flush_tlb_pgtables(struct mm_struct *mm,
	unsigned long start, unsigned long end) { }

#else /* CONFIG_MMU */

#define flush_tlb()				BUG()
#define flush_tlb_all()				BUG()
#define flush_tlb_mm(mm)			BUG()
#define flush_tlb_page(vma, addr)		BUG()
#define flush_tlb_range(mm, start, end)		BUG()
#define flush_tlb_pgtables(mm, start, end)	BUG()
#define flush_tlb_kernel_range(start, end)	BUG()

#endif /* CONFIG_MMU */

#endif /* _ASM_MICROBLAZE_TLBFLUSH_H */

Filemanager

Name Type Size Permission Actions
Kbuild File 742 B 0644
asm-compat.h File 518 B 0644
asm-offsets.h File 35 B 0644
atomic.h File 626 B 0644
cache.h File 644 B 0644
cacheflush.h File 4.12 KB 0644
checksum.h File 942 B 0644
cmpxchg.h File 919 B 0644
cpuinfo.h File 2.13 KB 0644
cputable.h File 1 B 0644
current.h File 850 B 0644
delay.h File 2.26 KB 0644
dma-mapping.h File 765 B 0644
dma.h File 706 B 0644
elf.h File 738 B 0644
entry.h File 1.13 KB 0644
exceptions.h File 2.08 KB 0644
fixmap.h File 1.96 KB 0644
flat.h File 2.26 KB 0644
ftrace.h File 641 B 0644
futex.h File 2.13 KB 0644
hash.h File 2.37 KB 0644
highmem.h File 2.2 KB 0644
hw_irq.h File 1 B 0644
io.h File 2.05 KB 0644
irq.h File 538 B 0644
irqflags.h File 2.6 KB 0644
kgdb.h File 739 B 0644
mmu.h File 4.19 KB 0644
mmu_context.h File 141 B 0644
mmu_context_mm.h File 3.91 KB 0644
module.h File 840 B 0644
page.h File 6.11 KB 0644
pci-bridge.h File 4.57 KB 0644
pci.h File 2.47 KB 0644
pgalloc.h File 4.74 KB 0644
pgtable.h File 17.66 KB 0644
processor.h File 4.11 KB 0644
prom.h File 713 B 0644
ptrace.h File 727 B 0644
pvr.h File 8.72 KB 0644
registers.h File 1.65 KB 0644
seccomp.h File 256 B 0644
sections.h File 637 B 0644
setup.h File 1.37 KB 0644
string.h File 630 B 0644
switch_to.h File 629 B 0644
syscall.h File 2.26 KB 0644
thread_info.h File 4.01 KB 0644
timex.h File 402 B 0644
tlb.h File 714 B 0644
tlbflush.h File 2.04 KB 0644
uaccess.h File 9.98 KB 0644
unaligned.h File 871 B 0644
unistd.h File 1.19 KB 0644
unwind.h File 719 B 0644
user.h File 1 B 0644