blob: 3a987a567258fb21e835c1d32b37ebc7f5329ce9 [file] [log] [blame]
Kyle Swenson8d8f6542021-03-15 11:02:55 -06001#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__
12extern unsigned long rom_length;
13extern unsigned long memory_start;
14extern unsigned long memory_end;
15extern unsigned long _ramend;
16#endif
17
18#endif