nommu.c 830 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * linux/arch/arm/mm/nommu.c
  3. *
  4. * ARM uCLinux supporting functions.
  5. */
  6. #include <linux/module.h>
  7. #include <linux/mm.h>
  8. #include <linux/pagemap.h>
  9. #include <asm/cacheflush.h>
  10. #include <asm/io.h>
  11. #include <asm/page.h>
  12. void flush_dcache_page(struct page *page)
  13. {
  14. __cpuc_flush_dcache_page(page_address(page));
  15. }
  16. EXPORT_SYMBOL(flush_dcache_page);
  17. void __iomem *__ioremap_pfn(unsigned long pfn, unsigned long offset,
  18. size_t size, unsigned long flags)
  19. {
  20. if (pfn >= (0x100000000ULL >> PAGE_SHIFT))
  21. return NULL;
  22. return (void __iomem *) (offset + (pfn << PAGE_SHIFT));
  23. }
  24. EXPORT_SYMBOL(__ioremap_pfn);
  25. void __iomem *__ioremap(unsigned long phys_addr, size_t size,
  26. unsigned long flags)
  27. {
  28. return (void __iomem *)phys_addr;
  29. }
  30. EXPORT_SYMBOL(__ioremap);
  31. void __iounmap(void __iomem *addr)
  32. {
  33. }
  34. EXPORT_SYMBOL(__iounmap);