aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-03-10 02:46:58 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-03-10 02:46:58 -0500
commit5b34d1ee1e51d61e779a25d28808e8ad824cea3d (patch)
treec016550c3620adf5e92887e9f6e5c4a272001e5b /arch/sh
parent089b43f9737f2e51c6ce354749f5a9f3f093601c (diff)
sh: Export uncached helper symbols.
oprofile and others need to get at these, so provide symbol exports. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/mm/uncached.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/mm/uncached.c b/arch/sh/mm/uncached.c
index 2ef57efeb225..8a4eca551fc0 100644
--- a/arch/sh/mm/uncached.c
+++ b/arch/sh/mm/uncached.c
@@ -1,4 +1,5 @@
1#include <linux/init.h> 1#include <linux/init.h>
2#include <linux/module.h>
2#include <asm/sizes.h> 3#include <asm/sizes.h>
3#include <asm/page.h> 4#include <asm/page.h>
4#include <asm/addrspace.h> 5#include <asm/addrspace.h>
@@ -16,11 +17,14 @@
16unsigned long cached_to_uncached = SZ_512M; 17unsigned long cached_to_uncached = SZ_512M;
17unsigned long uncached_size = SZ_512M; 18unsigned long uncached_size = SZ_512M;
18unsigned long uncached_start, uncached_end; 19unsigned long uncached_start, uncached_end;
20EXPORT_SYMBOL(uncached_start);
21EXPORT_SYMBOL(uncached_end);
19 22
20int virt_addr_uncached(unsigned long kaddr) 23int virt_addr_uncached(unsigned long kaddr)
21{ 24{
22 return (kaddr >= uncached_start) && (kaddr < uncached_end); 25 return (kaddr >= uncached_start) && (kaddr < uncached_end);
23} 26}
27EXPORT_SYMBOL(virt_addr_uncached);
24 28
25void __init uncached_init(void) 29void __init uncached_init(void)
26{ 30{