mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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>
This commit is contained in:
parent
089b43f973
commit
5b34d1ee1e
@ -1,4 +1,5 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/module.h>
|
||||
#include <asm/sizes.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/addrspace.h>
|
||||
@ -16,11 +17,14 @@
|
||||
unsigned long cached_to_uncached = SZ_512M;
|
||||
unsigned long uncached_size = SZ_512M;
|
||||
unsigned long uncached_start, uncached_end;
|
||||
EXPORT_SYMBOL(uncached_start);
|
||||
EXPORT_SYMBOL(uncached_end);
|
||||
|
||||
int virt_addr_uncached(unsigned long kaddr)
|
||||
{
|
||||
return (kaddr >= uncached_start) && (kaddr < uncached_end);
|
||||
}
|
||||
EXPORT_SYMBOL(virt_addr_uncached);
|
||||
|
||||
void __init uncached_init(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user