summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/uapi
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-04-08 17:13:12 +0100
committerWill Deacon <will.deacon@arm.com>2013-05-30 16:02:34 +0100
commita469abd0f868c902b75532579bf87553dcf1b360 (patch)
tree45b8497556dff1a90311bbd087f34ff4791be9d6 /arch/arm/include/uapi
parente38a517578d6c0f764b0d0f6e26dcdf9f70c69d7 (diff)
downloadop-kernel-dev-a469abd0f868c902b75532579bf87553dcf1b360.zip
op-kernel-dev-a469abd0f868c902b75532579bf87553dcf1b360.tar.gz
ARM: elf: add new hwcap for identifying atomic ldrd/strd instructions
CPUs implementing LPAE have atomic ldrd/strd instructions, meaning that userspace software can avoid having to use the exclusive variants of these instructions if they wish. This patch advertises the atomicity of these instructions via the hwcaps, so userspace can detect this CPU feature. Reported-by: Vladimir Danushevsky <vladimir.danushevsky@oracle.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/include/uapi')
-rw-r--r--arch/arm/include/uapi/asm/hwcap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/uapi/asm/hwcap.h b/arch/arm/include/uapi/asm/hwcap.h
index 3688fd1..6d34d08 100644
--- a/arch/arm/include/uapi/asm/hwcap.h
+++ b/arch/arm/include/uapi/asm/hwcap.h
@@ -25,6 +25,6 @@
#define HWCAP_IDIVT (1 << 18)
#define HWCAP_VFPD32 (1 << 19) /* set if VFP has 32 regs (not 16) */
#define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT)
-
+#define HWCAP_LPAE (1 << 20)
#endif /* _UAPI__ASMARM_HWCAP_H */
OpenPOWER on IntegriCloud