memory.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * linux/arch/h8300/mm/memory.c
  4. *
  5. * Copyright (C) 2002 Yoshinori Sato <ysato@users.sourceforge.jp>,
  6. *
  7. * Based on:
  8. *
  9. * linux/arch/m68knommu/mm/memory.c
  10. *
  11. * Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,
  12. * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com)
  13. *
  14. * Based on:
  15. *
  16. * linux/arch/m68k/mm/memory.c
  17. *
  18. * Copyright (C) 1995 Hamish Macdonald
  19. */
  20. #include <linux/mm.h>
  21. #include <linux/kernel.h>
  22. #include <linux/string.h>
  23. #include <linux/types.h>
  24. #include <asm/setup.h>
  25. #include <asm/segment.h>
  26. #include <asm/page.h>
  27. #include <asm/pgtable.h>
  28. #include <asm/traps.h>
  29. #include <asm/io.h>
  30. void cache_clear(unsigned long paddr, int len)
  31. {
  32. }
  33. void cache_push(unsigned long paddr, int len)
  34. {
  35. }
  36. void cache_push_v(unsigned long vaddr, int len)
  37. {
  38. }
  39. /*
  40. * Map some physical address range into the kernel address space.
  41. */
  42. unsigned long kernel_map(unsigned long paddr, unsigned long size,
  43. int nocacheflag, unsigned long *memavailp)
  44. {
  45. return paddr;
  46. }