diff options
author | Mikael Starvik <mikael.starvik@axis.com> | 2005-07-27 14:44:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:01 -0400 |
commit | 51533b615e605d86154ec1b4e585c8ca1b0b15b7 (patch) | |
tree | 4a6d7d8494d2017632d83624fb71b36031e0e7e5 /include/asm-cris/arch-v32/page.h | |
parent | 5d01e6ce785884a5db5792cd2e5bb36fa82fe23c (diff) |
[PATCH] CRIS update: new subarchitecture v32
New CRIS sub architecture named v32.
From: Dave Jones <davej@redhat.com>
Fix swapped kmalloc args
Signed-off-by: Mikael Starvik <starvik@axis.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-cris/arch-v32/page.h')
-rw-r--r-- | include/asm-cris/arch-v32/page.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v32/page.h b/include/asm-cris/arch-v32/page.h new file mode 100644 index 000000000000..77827bc17cca --- /dev/null +++ b/include/asm-cris/arch-v32/page.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef _ASM_CRIS_ARCH_PAGE_H | ||
2 | #define _ASM_CRIS_ARCH_PAGE_H | ||
3 | |||
4 | #include <linux/config.h> | ||
5 | |||
6 | #ifdef __KERNEL__ | ||
7 | |||
8 | #define PAGE_OFFSET KSEG_C /* kseg_c is mapped to physical ram. */ | ||
9 | |||
10 | /* | ||
11 | * Macros to convert between physical and virtual addresses. By stripiing a | ||
12 | * selected bit it's possible to convert between KSEG_x and 0x40000000 where the | ||
13 | * DRAM really resides. DRAM is virtually at 0xc. | ||
14 | */ | ||
15 | #ifndef CONFIG_ETRAXFS_SIM | ||
16 | #define __pa(x) ((unsigned long)(x) & 0x7fffffff) | ||
17 | #define __va(x) ((void *)((unsigned long)(x) | 0x80000000)) | ||
18 | #else | ||
19 | #define __pa(x) ((unsigned long)(x) & 0x3fffffff) | ||
20 | #define __va(x) ((void *)((unsigned long)(x) | 0xc0000000)) | ||
21 | #endif | ||
22 | |||
23 | #define VM_STACK_DEFAULT_FLAGS (VM_READ | VM_WRITE | \ | ||
24 | VM_MAYREAD | VM_MAYWRITE) | ||
25 | |||
26 | #endif /* __KERNEL__ */ | ||
27 | |||
28 | #endif /* _ASM_CRIS_ARCH_PAGE_H */ | ||