diff options
Diffstat (limited to 'include/asm-cris/arch-v10')
-rw-r--r-- | include/asm-cris/arch-v10/elf.h | 10 | ||||
-rw-r--r-- | include/asm-cris/arch-v10/memmap.h | 22 | ||||
-rw-r--r-- | include/asm-cris/arch-v10/processor.h | 8 |
3 files changed, 40 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v10/elf.h b/include/asm-cris/arch-v10/elf.h index 2a2201ca538e..1c38ee728b17 100644 --- a/include/asm-cris/arch-v10/elf.h +++ b/include/asm-cris/arch-v10/elf.h | |||
@@ -1,6 +1,16 @@ | |||
1 | #ifndef __ASMCRIS_ARCH_ELF_H | 1 | #ifndef __ASMCRIS_ARCH_ELF_H |
2 | #define __ASMCRIS_ARCH_ELF_H | 2 | #define __ASMCRIS_ARCH_ELF_H |
3 | 3 | ||
4 | #define ELF_MACH EF_CRIS_VARIANT_ANY_V0_V10 | ||
5 | |||
6 | /* | ||
7 | * This is used to ensure we don't load something for the wrong architecture. | ||
8 | */ | ||
9 | #define elf_check_arch(x) \ | ||
10 | ((x)->e_machine == EM_CRIS \ | ||
11 | && ((((x)->e_flags & EF_CRIS_VARIANT_MASK) == EF_CRIS_VARIANT_ANY_V0_V10 \ | ||
12 | || (((x)->e_flags & EF_CRIS_VARIANT_MASK) == EF_CRIS_VARIANT_COMMON_V10_V32)))) | ||
13 | |||
4 | /* | 14 | /* |
5 | * ELF register definitions.. | 15 | * ELF register definitions.. |
6 | */ | 16 | */ |
diff --git a/include/asm-cris/arch-v10/memmap.h b/include/asm-cris/arch-v10/memmap.h new file mode 100644 index 000000000000..13f3b971407f --- /dev/null +++ b/include/asm-cris/arch-v10/memmap.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef _ASM_ARCH_MEMMAP_H | ||
2 | #define _ASM_ARCH_MEMMAP_H | ||
3 | |||
4 | #define MEM_CSE0_START (0x00000000) | ||
5 | #define MEM_CSE0_SIZE (0x04000000) | ||
6 | #define MEM_CSE1_START (0x04000000) | ||
7 | #define MEM_CSE1_SIZE (0x04000000) | ||
8 | #define MEM_CSR0_START (0x08000000) | ||
9 | #define MEM_CSR1_START (0x0c000000) | ||
10 | #define MEM_CSP0_START (0x10000000) | ||
11 | #define MEM_CSP1_START (0x14000000) | ||
12 | #define MEM_CSP2_START (0x18000000) | ||
13 | #define MEM_CSP3_START (0x1c000000) | ||
14 | #define MEM_CSP4_START (0x20000000) | ||
15 | #define MEM_CSP5_START (0x24000000) | ||
16 | #define MEM_CSP6_START (0x28000000) | ||
17 | #define MEM_CSP7_START (0x2c000000) | ||
18 | #define MEM_DRAM_START (0x40000000) | ||
19 | |||
20 | #define MEM_NON_CACHEABLE (0x80000000) | ||
21 | |||
22 | #endif | ||
diff --git a/include/asm-cris/arch-v10/processor.h b/include/asm-cris/arch-v10/processor.h index 9355d8675a58..e23df8dc96e8 100644 --- a/include/asm-cris/arch-v10/processor.h +++ b/include/asm-cris/arch-v10/processor.h | |||
@@ -59,4 +59,12 @@ struct thread_struct { | |||
59 | wrusp(usp); \ | 59 | wrusp(usp); \ |
60 | } while(0) | 60 | } while(0) |
61 | 61 | ||
62 | /* Called when handling a kernel bus fault fixup. | ||
63 | * | ||
64 | * After a fixup we do not want to return by restoring the CPU-state | ||
65 | * anymore, so switch frame-types (see ptrace.h) | ||
66 | */ | ||
67 | #define arch_fixup(regs) \ | ||
68 | regs->frametype = CRIS_FRAME_NORMAL; | ||
69 | |||
62 | #endif | 70 | #endif |