summaryrefslogtreecommitdiff
path: root/arch/openrisc/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-07-12 16:28:53 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-07-12 16:28:53 -0700
commit0099852f9d7322890636503146f303b41cd8663e (patch)
treeeb422855af8633bbef4623b3ad9ed496dd12e84b /arch/openrisc/include
parenteb26cbb1a754ccde5d4d74527dad5ba051808fad (diff)
parentdceaafd668812115037fc13a1893d068b7b880f5 (diff)
Merge tag 'for-linus' of https://github.com/openrisc/linux
Pull OpenRISC fix from Stafford Horne: - During the 6.4 cycle my fpu support work broke ABI compatibility in the sigcontext struct. This was noticed by musl libc developers after the release. This fix restores the ABI. * tag 'for-linus' of https://github.com/openrisc/linux: openrisc: Union fpcsr and oldmask in sigcontext to unbreak userspace ABI
Diffstat (limited to 'arch/openrisc/include')
-rw-r--r--arch/openrisc/include/uapi/asm/sigcontext.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/openrisc/include/uapi/asm/sigcontext.h b/arch/openrisc/include/uapi/asm/sigcontext.h
index ca585e4af6b8..e7ffb58ff58f 100644
--- a/arch/openrisc/include/uapi/asm/sigcontext.h
+++ b/arch/openrisc/include/uapi/asm/sigcontext.h
@@ -28,8 +28,10 @@
struct sigcontext {
struct user_regs_struct regs; /* needs to be first */
- struct __or1k_fpu_state fpu;
- unsigned long oldmask;
+ union {
+ unsigned long fpcsr;
+ unsigned long oldmask; /* unused */
+ };
};
#endif /* __ASM_OPENRISC_SIGCONTEXT_H */