diff options
Diffstat (limited to 'arch/arm/mm/nommu.c')
-rw-r--r-- | arch/arm/mm/nommu.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c new file mode 100644 index 000000000000..934c551d93da --- /dev/null +++ b/arch/arm/mm/nommu.c | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mm/nommu.c | ||
3 | * | ||
4 | * ARM uCLinux supporting functions. | ||
5 | */ | ||
6 | #include <linux/module.h> | ||
7 | |||
8 | #include <asm/io.h> | ||
9 | #include <asm/page.h> | ||
10 | |||
11 | void __iomem *__ioremap_pfn(unsigned long pfn, unsigned long offset, | ||
12 | size_t size, unsigned long flags) | ||
13 | { | ||
14 | if (pfn >= (0x100000000ULL >> PAGE_SHIFT)) | ||
15 | return NULL; | ||
16 | return (void __iomem *) (offset + (pfn << PAGE_SHIFT)); | ||
17 | } | ||
18 | EXPORT_SYMBOL(__ioremap_pfn); | ||
19 | |||
20 | void __iomem *__ioremap(unsigned long phys_addr, size_t size, | ||
21 | unsigned long flags) | ||
22 | { | ||
23 | return (void __iomem *)phys_addr; | ||
24 | } | ||
25 | EXPORT_SYMBOL(__ioremap); | ||
26 | |||
27 | void __iounmap(void __iomem *addr) | ||
28 | { | ||
29 | } | ||
30 | EXPORT_SYMBOL(__iounmap); | ||