diff options
| author | Steve Kondik <steve@cyngn.com> | 2015-03-26 13:12:10 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-10 12:02:16 +0200 |
| commit | da41a8ba114413710780e96b7ea433c99efc82a5 (patch) | |
| tree | 0a4fb7dc4589c404aa7fca7d41b2f8c472498cb2 | |
| parent | bdb74c0d5a0f175b74302bb2709c7dbf4521afe7 (diff) | |
arm64: Fix the ARM userspace build
* __uint128_t is not defined on 32-bit.
Change-Id: I3447a95810f67b2af79f4ed476af96d8c279d2f7
Signed-off-by: Peter Nyilas <peter.nyilas@byyd-tech.com>
| -rw-r--r-- | arch/arm64/include/uapi/asm/ptrace.h | 2 | ||||
| -rw-r--r-- | arch/arm64/include/uapi/asm/sigcontext.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/ptrace.h b/arch/arm64/include/uapi/asm/ptrace.h index 49c617462..f91a45fd7 100644 --- a/arch/arm64/include/uapi/asm/ptrace.h +++ b/arch/arm64/include/uapi/asm/ptrace.h @@ -72,11 +72,13 @@ struct user_pt_regs { __u64 pstate; }; +#if defined (__LP64__) struct user_fpsimd_state { __uint128_t vregs[32]; __u32 fpsr; __u32 fpcr; }; +#endif struct user_hwdebug_state { __u32 dbg_info; diff --git a/arch/arm64/include/uapi/asm/sigcontext.h b/arch/arm64/include/uapi/asm/sigcontext.h index c731ca011..7681c82de 100644 --- a/arch/arm64/include/uapi/asm/sigcontext.h +++ b/arch/arm64/include/uapi/asm/sigcontext.h @@ -47,12 +47,14 @@ struct _aarch64_ctx { #define FPSIMD_MAGIC 0x46508001 +#if defined (__LP64__) struct fpsimd_context { struct _aarch64_ctx head; __u32 fpsr; __u32 fpcr; __uint128_t vregs[32]; }; +#endif /* ESR_EL1 context */ #define ESR_MAGIC 0x45535201 |
