Yoshinori Sato | d2a5f49 | 2015-05-11 02:20:06 +0900 | [diff] [blame] | 1 | #ifndef _H8300_PAGE_H |
| 2 | #define _H8300_PAGE_H |
| 3 | |
| 4 | #include <asm-generic/page.h> |
| 5 | #include <linux/types.h> |
| 6 | |
| 7 | #define MAP_NR(addr) (((uintptr_t)(addr)-PAGE_OFFSET) >> PAGE_SHIFT) |
| 8 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ |
| 9 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
| 10 | |
| 11 | #ifndef __ASSEMBLY__ |
| 12 | extern unsigned long rom_length; |
| 13 | extern unsigned long memory_start; |
| 14 | extern unsigned long memory_end; |
| 15 | extern unsigned long _ramend; |
| 16 | #endif |
| 17 | |
| 18 | #endif |