blob: e21249548e9fbd320b9b77c4cb33f153a9808ac2 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * linux/arch/arm/mm/proc-syms.c
4 *
5 * Copyright (C) 2000-2002 Russell King
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 */
7#include <linux/module.h>
8#include <linux/mm.h>
9
10#include <asm/cacheflush.h>
11#include <asm/proc-fns.h>
12#include <asm/tlbflush.h>
George G. Davis7b1df192006-07-29 08:29:27 +010013#include <asm/page.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
15#ifndef MULTI_CPU
16EXPORT_SYMBOL(cpu_dcache_clean_area);
Will Deacond455bac2013-01-22 11:00:54 +000017#ifdef CONFIG_MMU
Russell Kingad1ae2f2006-12-13 14:34:43 +000018EXPORT_SYMBOL(cpu_set_pte_ext);
Will Deacond455bac2013-01-22 11:00:54 +000019#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#else
21EXPORT_SYMBOL(processor);
22#endif
23
24#ifndef MULTI_CACHE
25EXPORT_SYMBOL(__cpuc_flush_kern_all);
26EXPORT_SYMBOL(__cpuc_flush_user_all);
27EXPORT_SYMBOL(__cpuc_flush_user_range);
28EXPORT_SYMBOL(__cpuc_coherent_kern_range);
Russell King2c9b9c82009-11-26 12:56:21 +000029EXPORT_SYMBOL(__cpuc_flush_dcache_area);
Linus Torvalds1da177e2005-04-16 15:20:36 -070030#else
31EXPORT_SYMBOL(cpu_cache);
32#endif
33
Catalin Marinas2a0cc682007-07-20 11:42:46 +010034#ifdef CONFIG_MMU
George G. Davis7b1df192006-07-29 08:29:27 +010035#ifndef MULTI_USER
Russell King303c6442008-10-31 16:32:19 +000036EXPORT_SYMBOL(__cpu_clear_user_highpage);
Russell King063b0a42008-10-31 15:08:35 +000037EXPORT_SYMBOL(__cpu_copy_user_highpage);
George G. Davis7b1df192006-07-29 08:29:27 +010038#else
39EXPORT_SYMBOL(cpu_user);
40#endif
Catalin Marinas2a0cc682007-07-20 11:42:46 +010041#endif
George G. Davis7b1df192006-07-29 08:29:27 +010042
Linus Torvalds1da177e2005-04-16 15:20:36 -070043/*
44 * No module should need to touch the TLB (and currently
45 * no modules do. We export this for "loadkernel" support
46 * (booting a new kernel from within a running kernel.)
47 */
48#ifdef MULTI_TLB
49EXPORT_SYMBOL(cpu_tlb);
50#endif