aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-cris/arch-v32/page.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-cris/arch-v32/page.h')
-rw-r--r--include/asm-cris/arch-v32/page.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/include/asm-cris/arch-v32/page.h b/include/asm-cris/arch-v32/page.h
deleted file mode 100644
index 20f1b4806bfe..000000000000
--- a/include/asm-cris/arch-v32/page.h
+++ /dev/null
@@ -1,27 +0,0 @@
1#ifndef _ASM_CRIS_ARCH_PAGE_H
2#define _ASM_CRIS_ARCH_PAGE_H
3
4
5#ifdef __KERNEL__
6
7#define PAGE_OFFSET KSEG_C /* kseg_c is mapped to physical ram. */
8
9/*
10 * Macros to convert between physical and virtual addresses. By stripping a
11 * selected bit it's possible to convert between KSEG_x and 0x40000000 where the
12 * DRAM really resides. DRAM is virtually at 0xc.
13 */
14#ifndef CONFIG_ETRAX_VCS_SIM
15#define __pa(x) ((unsigned long)(x) & 0x7fffffff)
16#define __va(x) ((void *)((unsigned long)(x) | 0x80000000))
17#else
18#define __pa(x) ((unsigned long)(x) & 0x3fffffff)
19#define __va(x) ((void *)((unsigned long)(x) | 0xc0000000))
20#endif
21
22#define VM_STACK_DEFAULT_FLAGS (VM_READ | VM_WRITE | \
23 VM_MAYREAD | VM_MAYWRITE)
24
25#endif /* __KERNEL__ */
26
27#endif /* _ASM_CRIS_ARCH_PAGE_H */