0001
0002
0003 #ifndef __ASM_CSKY_MEMORY_H
0004 #define __ASM_CSKY_MEMORY_H
0005
0006 #include <linux/compiler.h>
0007 #include <linux/const.h>
0008 #include <linux/types.h>
0009 #include <linux/sizes.h>
0010
0011 #define FIXADDR_TOP _AC(0xffffc000, UL)
0012 #define PKMAP_BASE _AC(0xff800000, UL)
0013 #define VMALLOC_START (PAGE_OFFSET + LOWMEM_LIMIT + (PAGE_SIZE * 8))
0014 #define VMALLOC_END (PKMAP_BASE - (PAGE_SIZE * 2))
0015
0016 #ifdef CONFIG_HAVE_TCM
0017 #ifdef CONFIG_HAVE_DTCM
0018 #define TCM_NR_PAGES (CONFIG_ITCM_NR_PAGES + CONFIG_DTCM_NR_PAGES)
0019 #else
0020 #define TCM_NR_PAGES (CONFIG_ITCM_NR_PAGES)
0021 #endif
0022 #define FIXADDR_TCM _AC(FIXADDR_TOP - (TCM_NR_PAGES * PAGE_SIZE), UL)
0023 #endif
0024
0025 #endif