blob: 10d2356bfddda86b03cf00bf33b347cd7a003097 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
GuanXuetaob50f1702011-01-15 18:16:59 +08002/*
3 * linux/arch/unicore32/include/asm/tlb.h
4 *
5 * Code specific to PKUnity SoC and UniCore ISA
6 *
7 * Copyright (C) 2001-2010 GUAN Xue-tao
GuanXuetaob50f1702011-01-15 18:16:59 +08008 */
9#ifndef __UNICORE_TLB_H__
10#define __UNICORE_TLB_H__
11
Peter Zijlstra6137fed2018-09-04 17:04:07 +020012/*
13 * unicore32 lacks an efficient flush_tlb_range(), use flush_tlb_mm().
14 */
GuanXuetaob50f1702011-01-15 18:16:59 +080015
GuanXuetao289d6b02011-03-04 20:00:11 +080016#define __pte_free_tlb(tlb, pte, addr) \
17 do { \
18 pgtable_page_dtor(pte); \
19 tlb_remove_page((tlb), (pte)); \
20 } while (0)
GuanXuetaob50f1702011-01-15 18:16:59 +080021
GuanXuetao289d6b02011-03-04 20:00:11 +080022#include <asm-generic/tlb.h>
GuanXuetaob50f1702011-01-15 18:16:59 +080023
24#endif