tlbflush.h (05909cd9a0c8811731b38697af13075e8954314f) | tlbflush.h (05cdf457477d6603b207d91873f0a3d4c7f8c1cd) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 4 * Copyright (C) 2008-2009 PetaLogix 5 * Copyright (C) 2006 Atmark Techno, Inc. 6 */ 7 8#ifndef _ASM_MICROBLAZE_TLBFLUSH_H 9#define _ASM_MICROBLAZE_TLBFLUSH_H 10 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 4 * Copyright (C) 2008-2009 PetaLogix 5 * Copyright (C) 2006 Atmark Techno, Inc. 6 */ 7 8#ifndef _ASM_MICROBLAZE_TLBFLUSH_H 9#define _ASM_MICROBLAZE_TLBFLUSH_H 10 |
11#ifdef CONFIG_MMU 12 | |
13#include <linux/sched.h> 14#include <linux/threads.h> 15#include <asm/processor.h> /* For TASK_SIZE */ 16#include <asm/mmu.h> 17#include <asm/page.h> 18 19extern void _tlbie(unsigned long address); 20extern void _tlbia(void); --- 24 unchanged lines hidden (view full) --- 45/* 46 * This is called in munmap when we have freed up some page-table 47 * pages. We don't need to do anything here, there's nothing special 48 * about our page-table pages. -- paulus 49 */ 50static inline void flush_tlb_pgtables(struct mm_struct *mm, 51 unsigned long start, unsigned long end) { } 52 | 11#include <linux/sched.h> 12#include <linux/threads.h> 13#include <asm/processor.h> /* For TASK_SIZE */ 14#include <asm/mmu.h> 15#include <asm/page.h> 16 17extern void _tlbie(unsigned long address); 18extern void _tlbia(void); --- 24 unchanged lines hidden (view full) --- 43/* 44 * This is called in munmap when we have freed up some page-table 45 * pages. We don't need to do anything here, there's nothing special 46 * about our page-table pages. -- paulus 47 */ 48static inline void flush_tlb_pgtables(struct mm_struct *mm, 49 unsigned long start, unsigned long end) { } 50 |
53#else /* CONFIG_MMU */ 54 55#define flush_tlb() BUG() 56#define flush_tlb_all() BUG() 57#define flush_tlb_mm(mm) BUG() 58#define flush_tlb_page(vma, addr) BUG() 59#define flush_tlb_range(mm, start, end) BUG() 60#define flush_tlb_pgtables(mm, start, end) BUG() 61#define flush_tlb_kernel_range(start, end) BUG() 62 63#endif /* CONFIG_MMU */ 64 | |
65#endif /* _ASM_MICROBLAZE_TLBFLUSH_H */ | 51#endif /* _ASM_MICROBLAZE_TLBFLUSH_H */ |