fireHydrantDataOperation.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _ASM_M32R_PGTABLE_H
  2. #define _ASM_M32R_PGTABLE_H
  3. #include <asm-generic/4level-fixup.h>
  4. #ifdef __KERNEL__
  5. /*
  6. * The Linux memory management assumes a three-level page table setup. On
  7. * the M32R, we use that, but "fold" the mid level into the top-level page
  8. * table, so that we physically have the same two-level page table as the
  9. * M32R mmu expects.
  10. *
  11. * This file contains the functions and defines necessary to modify and use
  12. * the M32R page table tree.
  13. */
  14. /* CAUTION!: If you change macro definitions in this file, you might have to
  15. * change arch/m32r/mmu.S manually.
  16. */
  17. #ifndef __ASSEMBLY__
  18. #include <linux/threads.h>
  19. #include <linux/bitops.h>
  20. #include <asm/processor.h>
  21. #include <asm/addrspace.h>
  22. #include <asm/page.h>
  23. struct mm_struct;
  24. struct vm_area_struct;
  25. extern pgd_t swapper_pg_dir[1024];
  26. extern void paging_init(void);
  27. /*
  28. * ZERO_PAGE is a global shared page that is always zero: used
  29. * for zero-mapped memory areas etc..
  30. */
  31. extern unsigned long empty_zero_page[1024];
  32. #define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page))