diff options
Diffstat (limited to 'arch/mn10300')
-rw-r--r-- | arch/mn10300/include/asm/elf.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mn10300/include/asm/elf.h b/arch/mn10300/include/asm/elf.h index a30d220de5ca..8157c9267f42 100644 --- a/arch/mn10300/include/asm/elf.h +++ b/arch/mn10300/include/asm/elf.h | |||
@@ -32,6 +32,12 @@ | |||
32 | #define R_MN10300_ALIGN 34 /* Alignment requirement. */ | 32 | #define R_MN10300_ALIGN 34 /* Alignment requirement. */ |
33 | 33 | ||
34 | /* | 34 | /* |
35 | * AM33/AM34 HW Capabilities | ||
36 | */ | ||
37 | #define HWCAP_MN10300_ATOMIC_OP_UNIT 1 /* Has AM34 Atomic Operations */ | ||
38 | |||
39 | |||
40 | /* | ||
35 | * ELF register definitions.. | 41 | * ELF register definitions.. |
36 | */ | 42 | */ |
37 | typedef unsigned long elf_greg_t; | 43 | typedef unsigned long elf_greg_t; |
@@ -128,7 +134,11 @@ do { \ | |||
128 | * instruction set this CPU supports. This could be done in user space, | 134 | * instruction set this CPU supports. This could be done in user space, |
129 | * but it's not easy, and we've already done it here. | 135 | * but it's not easy, and we've already done it here. |
130 | */ | 136 | */ |
137 | #ifdef CONFIG_MN10300_HAS_ATOMIC_OPS_UNIT | ||
138 | #define ELF_HWCAP (HWCAP_MN10300_ATOMIC_OP_UNIT) | ||
139 | #else | ||
131 | #define ELF_HWCAP (0) | 140 | #define ELF_HWCAP (0) |
141 | #endif | ||
132 | 142 | ||
133 | /* | 143 | /* |
134 | * This yields a string that ld.so will use to load implementation | 144 | * This yields a string that ld.so will use to load implementation |