This website requires JavaScript.
Explore
Help
Sign In
RepoMirrors
/
musl
Watch
1
Star
0
Fork
0
You've already forked musl
mirror of
git://git.musl-libc.org/musl
synced
2024-12-20 05:41:00 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
d149e69c02
musl
/
arch
/
sh
/
bits
/
setjmp.h
2 lines
37 B
C
Raw
Normal View
History
Unescape
Escape
fix sh jmp_buf size to match ABI while the sh port is still experimental and subject to ABI instability, this is not actually an application/libc boundary ABI change. it only affects third-party APIs where jmp_buf is used in a shared structure at the ABI boundary, because nothing anywhere near the end of the jmp_buf object (which includes the oversized sigset_t) is accessed by libc. both glibc and uclibc have 15-slot jmp_buf for sh. presumably the smaller version was used in musl because the slots for fpu status register and thread pointer register (gbr) were incorrect and must not be restored by longjmp, but the size should have been preserved, as it's generally treated as a libc-agnostic ABI property for the arch, and having extra slots free in case we ever need them for something is useful anyway.
2015-04-28 00:03:28 +00:00
typedef
unsigned
long
__jmp_buf
[
15
]
;
Reference in New Issue
Copy Permalink