X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fmn10300%2Finclude%2Fasm%2Felf.h;h=8157c9267f426ac7dabdd6f0dcef9a67bd2ff5a3;hb=17f490bcedd7b6677140b2d49efe9e9e6b84de60;hp=e5fa97cd9a147222c567b39f1e8bd01cec18ff4a;hpb=66b89159c25a47d2177743526c61b5ada7acc39e;p=pandora-kernel.git diff --git a/arch/mn10300/include/asm/elf.h b/arch/mn10300/include/asm/elf.h index e5fa97cd9a14..8157c9267f42 100644 --- a/arch/mn10300/include/asm/elf.h +++ b/arch/mn10300/include/asm/elf.h @@ -31,6 +31,12 @@ #define R_MN10300_SYM_DIFF 33 /* Adjustment when relaxing. */ #define R_MN10300_ALIGN 34 /* Alignment requirement. */ +/* + * AM33/AM34 HW Capabilities + */ +#define HWCAP_MN10300_ATOMIC_OP_UNIT 1 /* Has AM34 Atomic Operations */ + + /* * ELF register definitions.. */ @@ -47,8 +53,6 @@ typedef struct { u_int32_t fpcr; } elf_fpregset_t; -extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); - /* * This is used to ensure we don't load something for the wrong architecture */ @@ -130,7 +134,11 @@ do { \ * instruction set this CPU supports. This could be done in user space, * but it's not easy, and we've already done it here. */ +#ifdef CONFIG_MN10300_HAS_ATOMIC_OPS_UNIT +#define ELF_HWCAP (HWCAP_MN10300_ATOMIC_OP_UNIT) +#else #define ELF_HWCAP (0) +#endif /* * This yields a string that ld.so will use to load implementation