diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-07-03 20:07:33 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-07-03 20:07:33 -0400 |
commit | d6c0efe106b1016108207fb6872820c06dcef4f8 (patch) | |
tree | 700300d0b4ff576121241befdcf865678cde4e5c /arch/arm/bits | |
parent | e6129e6d836e5f4725d9b14ba7457b32e24adc61 (diff) | |
download | musl-d6c0efe106b1016108207fb6872820c06dcef4f8.tar.gz musl-d6c0efe106b1016108207fb6872820c06dcef4f8.tar.xz musl-d6c0efe106b1016108207fb6872820c06dcef4f8.zip |
jmp_buf overhaul fixing several issues
on arm, the location of the saved-signal-mask flag and mask were off by one between sigsetjmp and siglongjmp, causing incorrect behavior restoring the signal mask. this is because the siglongjmp code assumed an extra slot was in the non-sig jmp_buf for the flag, but arm did not have this. now, the extra slot is removed for all archs since it was useless. also, arm eabi requires jmp_buf to have 8-byte alignment. we achieve that using long long as the type rather than with non-portable gcc attribute tags.
Diffstat (limited to 'arch/arm/bits')
-rw-r--r-- | arch/arm/bits/setjmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/bits/setjmp.h b/arch/arm/bits/setjmp.h index a4baec4c..3938cb8a 100644 --- a/arch/arm/bits/setjmp.h +++ b/arch/arm/bits/setjmp.h @@ -1 +1 @@ -typedef unsigned long jmp_buf [64]; +typedef unsigned long long jmp_buf[32]; |