__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ALPHA_TLBFLUSH_H
#define _ALPHA_TLBFLUSH_H
#include <linux/mm.h>
#include <linux/sched.h>
#include <asm/compiler.h>
#ifndef __EXTERN_INLINE
#define __EXTERN_INLINE extern inline
#define __MMU_EXTERN_INLINE
#endif
extern void __load_new_mm_context(struct mm_struct *);
__EXTERN_INLINE void
ev5_flush_tlb_current(struct mm_struct *mm)
{
__load_new_mm_context(mm);
}
/* Flush just one page in the current TLB set. We need to be very
careful about the icache here, there is no way to invalidate a
specific icache page. */
__EXTERN_INLINE void
ev5_flush_tlb_current_page(struct mm_struct * mm,
struct vm_area_struct *vma,
unsigned long addr)
{
if (vma->vm_flags & VM_EXEC)
__load_new_mm_context(mm);
else
tbi(2, addr);
}
#define flush_tlb_current ev5_flush_tlb_current
#define flush_tlb_current_page ev5_flush_tlb_current_page
#ifdef __MMU_EXTERN_INLINE
#undef __EXTERN_INLINE
#undef __MMU_EXTERN_INLINE
#endif
/* Flush current user mapping. */
static inline void
flush_tlb(void)
{
flush_tlb_current(current->active_mm);
}
/* Flush someone else's user mapping. */
static inline void
flush_tlb_other(struct mm_struct *mm)
{
unsigned long *mmc = &mm->context[smp_processor_id()];
/* Check it's not zero first to avoid cacheline ping pong
when possible. */
if (*mmc) *mmc = 0;
}
#ifndef CONFIG_SMP
/* Flush everything (kernel mapping may also have changed
due to vmalloc/vfree). */
static inline void flush_tlb_all(void)
{
tbia();
}
/* Flush a specified user mapping. */
static inline void
flush_tlb_mm(struct mm_struct *mm)
{
if (mm == current->active_mm)
flush_tlb_current(mm);
else
flush_tlb_other(mm);
}
/* Page-granular tlb flush. */
static inline void
flush_tlb_page(struct vm_area_struct *vma, unsigned long addr)
{
struct mm_struct *mm = vma->vm_mm;
if (mm == current->active_mm)
flush_tlb_current_page(mm, vma, addr);
else
flush_tlb_other(mm);
}
/* Flush a specified range of user mapping. On the Alpha we flush
the whole user tlb. */
static inline void
flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
unsigned long end)
{
flush_tlb_mm(vma->vm_mm);
}
#else /* CONFIG_SMP */
extern void flush_tlb_all(void);
extern void flush_tlb_mm(struct mm_struct *);
extern void flush_tlb_page(struct vm_area_struct *, unsigned long);
extern void flush_tlb_range(struct vm_area_struct *, unsigned long,
unsigned long);
#endif /* CONFIG_SMP */
static inline void flush_tlb_kernel_range(unsigned long start,
unsigned long end)
{
flush_tlb_all();
}
#endif /* _ALPHA_TLBFLUSH_H */
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Kbuild | File | 194 B | 0644 |
|
| agp_backend.h | File | 948 B | 0644 |
|
| asm-prototypes.h | File | 505 B | 0644 |
|
| atomic.h | File | 7.48 KB | 0644 |
|
| barrier.h | File | 507 B | 0644 |
|
| bitops.h | File | 9.31 KB | 0644 |
|
| bug.h | File | 571 B | 0644 |
|
| cache.h | File | 507 B | 0644 |
|
| cacheflush.h | File | 2.17 KB | 0644 |
|
| checksum.h | File | 1.96 KB | 0644 |
|
| cmpxchg.h | File | 6.26 KB | 0644 |
|
| compiler.h | File | 158 B | 0644 |
|
| console.h | File | 1.06 KB | 0644 |
|
| core_cia.h | File | 15.82 KB | 0644 |
|
| core_irongate.h | File | 6.63 KB | 0644 |
|
| core_marvel.h | File | 9.14 KB | 0644 |
|
| core_mcpcia.h | File | 11.94 KB | 0644 |
|
| core_polaris.h | File | 2.92 KB | 0644 |
|
| core_t2.h | File | 19.18 KB | 0644 |
|
| core_titan.h | File | 11.2 KB | 0644 |
|
| core_tsunami.h | File | 8.29 KB | 0644 |
|
| core_wildfire.h | File | 8.45 KB | 0644 |
|
| delay.h | File | 264 B | 0644 |
|
| device.h | File | 129 B | 0644 |
|
| dma-mapping.h | File | 272 B | 0644 |
|
| dma.h | File | 12.01 KB | 0644 |
|
| elf.h | File | 5.38 KB | 0644 |
|
| emergency-restart.h | File | 149 B | 0644 |
|
| err_common.h | File | 3.24 KB | 0644 |
|
| err_ev6.h | File | 116 B | 0644 |
|
| err_ev7.h | File | 4.37 KB | 0644 |
|
| extable.h | File | 1.42 KB | 0644 |
|
| floppy.h | File | 3.11 KB | 0644 |
|
| fpu.h | File | 2.13 KB | 0644 |
|
| ftrace.h | File | 12 B | 0644 |
|
| futex.h | File | 1.97 KB | 0644 |
|
| gct.h | File | 1.02 KB | 0644 |
|
| hardirq.h | File | 223 B | 0644 |
|
| hw_irq.h | File | 302 B | 0644 |
|
| hwrpb.h | File | 6.9 KB | 0644 |
|
| io.h | File | 15.34 KB | 0644 |
|
| io_trivial.h | File | 3.34 KB | 0644 |
|
| irq.h | File | 2.06 KB | 0644 |
|
| irqflags.h | File | 1.17 KB | 0644 |
|
| linkage.h | File | 256 B | 0644 |
|
| local.h | File | 2.67 KB | 0644 |
|
| machvec.h | File | 3.27 KB | 0644 |
|
| mc146818rtc.h | File | 680 B | 0644 |
|
| mce.h | File | 4.04 KB | 0644 |
|
| mmu.h | File | 203 B | 0644 |
|
| mmu_context.h | File | 5.92 KB | 0644 |
|
| module.h | File | 329 B | 0644 |
|
| page.h | File | 2.08 KB | 0644 |
|
| pal.h | File | 5.01 KB | 0644 |
|
| param.h | File | 284 B | 0644 |
|
| parport.h | File | 536 B | 0644 |
|
| pci.h | File | 2.39 KB | 0644 |
|
| percpu.h | File | 527 B | 0644 |
|
| perf_event.h | File | 105 B | 0644 |
|
| pgalloc.h | File | 761 B | 0644 |
|
| pgtable.h | File | 12.76 KB | 0644 |
|
| processor.h | File | 1.28 KB | 0644 |
|
| ptrace.h | File | 715 B | 0644 |
|
| rwonce.h | File | 812 B | 0644 |
|
| serial.h | File | 1.01 KB | 0644 |
|
| setup.h | File | 1.43 KB | 0644 |
|
| sfp-machine.h | File | 2.86 KB | 0644 |
|
| shmparam.h | File | 191 B | 0644 |
|
| signal.h | File | 627 B | 0644 |
|
| smp.h | File | 1.34 KB | 0644 |
|
| socket.h | File | 310 B | 0644 |
|
| sparsemem.h | File | 410 B | 0644 |
|
| special_insns.h | File | 865 B | 0644 |
|
| spinlock.h | File | 2.85 KB | 0644 |
|
| spinlock_types.h | File | 419 B | 0644 |
|
| string.h | File | 2.42 KB | 0644 |
|
| switch_to.h | File | 406 B | 0644 |
|
| syscall.h | File | 379 B | 0644 |
|
| thread_info.h | File | 3.82 KB | 0644 |
|
| timex.h | File | 827 B | 0644 |
|
| tlb.h | File | 257 B | 0644 |
|
| tlbflush.h | File | 2.57 KB | 0644 |
|
| topology.h | File | 271 B | 0644 |
|
| types.h | File | 143 B | 0644 |
|
| uaccess.h | File | 5.99 KB | 0644 |
|
| ucontext.h | File | 348 B | 0644 |
|
| unistd.h | File | 561 B | 0644 |
|
| user.h | File | 1.95 KB | 0644 |
|
| vga.h | File | 2.1 KB | 0644 |
|
| vmalloc.h | File | 93 B | 0644 |
|
| word-at-a-time.h | File | 1.34 KB | 0644 |
|
| wrperfmon.h | File | 2.56 KB | 0644 |
|
| xor.h | File | 21.93 KB | 0644 |
|