page.h 446 B

123456789101112131415161718
  1. #ifndef _H8300_PAGE_H
  2. #define _H8300_PAGE_H
  3. #include <asm-generic/page.h>
  4. #include <linux/types.h>
  5. #define MAP_NR(addr) (((uintptr_t)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)
  6. #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
  7. VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
  8. #ifndef __ASSEMBLY__
  9. extern unsigned long rom_length;
  10. extern unsigned long memory_start;
  11. extern unsigned long memory_end;
  12. extern unsigned long _ramend;
  13. #endif
  14. #endif