| Commit message (Expand) | Author | Age | Files | Lines |
| * | fix regression in powerpc[64] SO_PEERSEC definition•••commit 587f5a53bc3a68d80b239ba515d583df690a96df moved the definition
of SO_PEERSEC to bits/socket.h for archs where the SO_* macros differ
from their standard values, but failed to add copies of the generic
definition for powerpc and powerpc64.
| Rich Felker | 2018-06-26 | 2 | -0/+2 |
| * | fix value of SO_PEERSEC on mips archs•••adapted from patch by Matthias Schiffer.
| Rich Felker | 2018-06-26 | 3 | -0/+3 |
| * | add m68k reg.h and user.h | Rich Felker | 2018-06-26 | 2 | -0/+78 |
| * | fix m68k float.h long double exponent range•••unlike the x86 variant, the m68k ld80 format allows (biased) exponent
zero with mantissa msb set, thereby extending the normal range.
| Rich Felker | 2018-06-20 | 1 | -2/+2 |
| * | work around broken kernel struct ipc_perm on some big endian archs•••the mode member of struct ipc_perm is specified by POSIX to have type
mode_t, which is uniformly defined as unsigned int. however, Linux
defines it with type __kernel_mode_t, and defines __kernel_mode_t as
unsigned short on some archs. since there is a subsequent padding
field, treating it as a 32-bit unsigned int works on little endian
archs, but the order is backwards on big endian archs with the
erroneous definition.
since multiple archs are affected, remedy the situation with fixup
code in the affected functions (shmctl, semctl, and msgctl) rather
than repeating the same shims in syscall_arch.h for every affected
arch.
| Rich Felker | 2018-06-20 | 4 | -0/+7 |
| * | s390x: add kexec_file_load syscall number from linux v4.17•••new in linux commit 71406883fd35794d573b3085433c41d0a3bf6c21
| Szabolcs Nagy | 2018-06-19 | 1 | -0/+1 |
| * | mips: add HWCAP_ flags from linux v4.17•••new in linux commit 256211f2b0b251e532d1899b115e374feb16fa7a
| Szabolcs Nagy | 2018-06-19 | 3 | -0/+3 |
| * | aarch64: add HWCAP_ flags from linux v4.17•••hwcaps for armv8.4, new in linux commit
7206dc93a58fb76421c4411eefa3c003337bcb2d
| Szabolcs Nagy | 2018-06-19 | 1 | -0/+4 |
| * | powerpc: add pkey syscall numbers from linux v4.16•••add pkey_mprotect, pkey_alloc, pkey_free syscall numbers,
new in linux commits 3350eb2ea127978319ced883523d828046af4045
and 9499ec1b5e82321829e1c1510bcc37edc20b6f38
| Szabolcs Nagy | 2018-06-19 | 2 | -0/+6 |
| * | aarch64: add HWCAP_ASIMDFHM from linux v4.16•••armv8.4 fp mul instructions.
added in commit 3b3b681097fae73b7f5dcdd42db6cfdf32943d4c
| Szabolcs Nagy | 2018-06-19 | 1 | -0/+1 |
| * | add m68k port•••three ABIs are supported: the default with 68881 80-bit fpu format and
results returned in floating point registers, softfloat-only with the
same format, and coldfire fpu with IEEE single/double only. only the
first is tested at all, and only under qemu which has fpu emulation
bugs.
basic functionality smoke tests have been performed for the most
common arch-specific breakage via libc-test and qemu user-level
emulation. some sysvipc failures remain, but are shared with other big
endian archs and will be fixed separately.
| Rich Felker | 2018-06-19 | 17 | -0/+847 |
| * | fix TLS layout of TLS variant I when there is a gap above TP•••In TLS variant I the TLS is above TP (or above a fixed offset from TP)
but on some targets there is a reserved gap above TP before TLS starts.
This matters for the local-exec tls access model when the offsets of
TLS variables from the TP are hard coded by the linker into the
executable, so the libc must compute these offsets the same way as the
linker. The tls offset of the main module has to be
alignup(GAP_ABOVE_TP, main_tls_align).
If there is no TLS in the main module then the gap can be ignored
since musl does not use it and the tls access models of shared
libraries are not affected.
The previous setup only worked if (tls_align & -GAP_ABOVE_TP) == 0
(i.e. TLS did not require large alignment) because the gap was
treated as a fixed offset from TP. Now the TP points at the end
of the pthread struct (which is aligned) and there is a gap above
it (which may also need alignment).
The fix required changing TP_ADJ and __pthread_self on affected
targets (aarch64, arm and sh) and in the tlsdesc asm the offset to
access the dtv changed too.
| Szabolcs Nagy | 2018-06-02 | 12 | -10/+19 |
| * | work around arm gcc's rejection of r7 asm constraints in thumb mode•••in thumb mode, r7 is the ABI frame pointer register, and unless frame
pointer is disabled, gcc insists on treating it as a fixed register,
refusing to spill it to satisfy constraints. unfortunately, r7 is also
used in the syscall ABI for passing the syscall number.
up til now we just treated this as a requirement to disable frame
pointer when generating code as thumb, but it turns out gcc forcibly
enables frame pointer, and the fixed register constraint that goes
with it, for functions which contain VLAs. this produces an
unacceptable arch-specific constraint that (non-arm-specific) source
files making syscalls cannot use VLAs.
as a workaround, avoid r7 register constraints when producing thumb
code and instead save/restore r7 in a temp register as part of the asm
block. at some point we may want/need to support armv6-m/thumb1, so
the asm has been tweaked to be thumb1-compatible while also
near-optimal for thumb2: it allows the temp and/or syscall number to
be in high registers (necessary since r0-r5 may all be used for
syscalll args) and in thumb2 mode allows the syscall number to be an
8-bit immediate.
| Rich Felker | 2018-05-01 | 1 | -14/+39 |
| * | arm: use a_ll/a_sc atomics when building for ARMv6T2•••ARMv6 cores with support for Thumb2 can take advantage of the "ldrex"
and "strex" based implementations of a_ll and a_sc.
| Andre McCurdy | 2018-04-19 | 1 | -1/+1 |
| * | arm: respect both __ARM_ARCH_6KZ__ and __ARM_ARCH_6ZK__ macros•••__ARM_ARCH_6ZK__ is a gcc specific historical typo which may not be
defined by other compilers.
https://gcc.gnu.org/ml/gcc-patches/2015-07/msg02237.html
To avoid unexpected results when building for ARMv6KZ with clang, the
correct form of the macro (ie 6KZ) needs to be tested. The incorrect
form of the macro (ie 6ZK) still needs to be tested for compatibility
with pre-2015 versions of gcc.
| Andre McCurdy | 2018-04-19 | 2 | -2/+2 |
| * | provide optimized a_ctz_32 for arm•••Provide an ARM specific a_ctz_32 helper function for architecture
versions for which it can be implemented efficiently via the "rbit"
instruction (ie all Thumb-2 capable versions of ARM v6 and above).
| Andre McCurdy | 2018-04-19 | 1 | -0/+12 |
| * | remove a_ctz_l from arch specific atomic_arch.h•••Update atomic.h to provide a_ctz_l in all cases (atomic_arch.h should
now only provide a_ctz_32 and/or a_ctz_64).
The generic version of a_ctz_32 now takes advantage of a_clz_32 if
available and the generic a_ctz_64 now makes use of a_ctz_32.
| Andre McCurdy | 2018-04-19 | 2 | -5/+5 |
| * | fix minor namespace issues in termios.h•••the output delay features (NL*, CR*, TAB*, BS*, and VT*) are
XSI-shaded. VT* is in the V* namespace reservation but the rest need
to be suppressed in base POSIX namespace.
unfortunately this change introduces feature test macro checks into
another bits header. at some point these checks should be simplified
by having features.h handle the "FTM X implies Y" relationships.
| Rich Felker | 2018-03-10 | 6 | -0/+12 |
| * | use PAGESIZE rather than PAGE_SIZE in user.h bits•••align with commit c9c2cd3e6955cb1d57b8be01d4b072bf44058762.
| Rich Felker | 2018-03-10 | 4 | -8/+8 |
| * | reverse definition dependency between PAGESIZE and PAGE_SIZE•••PAGESIZE is actually the version defined in POSIX base, with PAGE_SIZE
being in the XSI option. use PAGESIZE as the underlying definition to
facilitate making exposure of PAGE_SIZE conditional.
| Rich Felker | 2018-03-10 | 6 | -6/+6 |
| * | aarch64: add sve_context struct and related defines from linux v4.15•••signal context definitions for scalable vector extension new in commit
d0b8cd3187889476144bd9b13bf36a932c3e7952
| Szabolcs Nagy | 2018-02-22 | 1 | -0/+39 |
| * | aarch64: update hwcap.h for linux v4.15•••HWCAP_SVE is new in linux commit 43994d824e8443263dc98b151e6326bf677be52e
HWCAP_SHA3, HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP and HWCAP_SHA512 are new in
f5e035f8694c3bdddc66ea46ecda965ee6853718
| Szabolcs Nagy | 2018-02-22 | 1 | -0/+6 |
| * | arm: add get_tls syscall from linux v4.15•••for systems without tp register or kuser helper, new in linux commit
8fcd6c45f5a65621ec809b7866a3623e9a01d4ed
| Szabolcs Nagy | 2018-02-22 | 1 | -0/+1 |
| * | powerpc: update hwcap.h for linux v4.15•••PPC_FEATURE2_HTM_NO_SUSPEND is new in linux commit
cba6ac4869e45cc93ac5497024d1d49576e82666
PPC_FEATURE2_DARN and PPC_FEATURE2_SCV were new in v4.12 in commit
a4700a26107241cc7b9ac8528b2c6714ff99983d
| Szabolcs Nagy | 2018-02-22 | 2 | -0/+6 |
| * | s390x: add s390_sthyi system call from v4.15•••to store hypervisor information, added in linux commit
3d8757b87d7fc15a87928bc970f060bc9c6dc618
| Szabolcs Nagy | 2018-02-22 | 1 | -0/+1 |
| * | add MAP_SYNC and MAP_SHARED_VALIDATE from linux v4.15•••for synchronous page faults, new in linux commit
1c9725974074a047f6080eecc62c50a8e840d050 and
b6fb293f2497a9841d94f6b57bd2bb2cd222da43
note that only targets that use asm-generic/mman.h have this new
flag defined, so undef it on other targets (mips*, powerpc*).
| Szabolcs Nagy | 2018-02-22 | 5 | -0/+5 |
| * | mips,powerpc: fix TIOCSER_TEMT in termios.h•••use the same token to define TIOCSER_TEMT as is used in ioctl.h
so when both headers are included there are no redefinition warnings
during musl build.
| Szabolcs Nagy | 2018-02-22 | 5 | -5/+5 |
| * | aarch64: add HWCAP_DCPOP from linux v4.14•••indicates ARMv8.2-DCPoP persistent memory support extension.
new in linux commit 7aac405ebb3224037efd56b73d82d181111cdac3
| Szabolcs Nagy | 2018-02-22 | 1 | -0/+1 |
| * | aarch64: fix mismatched type of ucontext_t uc_link member | William Pitcock | 2018-01-31 | 1 | -1/+1 |
| * | fix x32 unistd macros to report as ILP32 not LP64 | Nicholas Wilson | 2017-12-14 | 1 | -2/+2 |
| * | s390x: use generic ioctl.h•••s390 can use the generic ioctls definitions other than FIOQSIZE (like arm).
this fixes some missing ioctls and two incorrect ones:
TIOCTTYGSTRUCT and TIOCM_MODEM_BITS seem to be defined on frv
target only in linux.
| Szabolcs Nagy | 2017-11-05 | 2 | -196/+2 |
| * | microblaze: add statx syscall from linux v4.13•••statx number is allocated for microblaze in linux commit
f5ef419630e85e80284cd0256cb5a13a66bbd6c5
| Szabolcs Nagy | 2017-11-05 | 1 | -0/+1 |
| * | aarch64: add extra_context struct from linux v4.13•••allows expanding the signal frame beyond the 4k reserved space.
new in linux commit 33f082614c3443d937f50fe936f284f62bbb4a1b
| Szabolcs Nagy | 2017-11-05 | 1 | -0/+7 |
| * | ioctl TIOCGPTPEER from linux v4.13•••added for safe opening of peer end of pty in a mount namespace.
new in linux commit c6325179238f1d4683edbec53d8322575d76d7e2
| Szabolcs Nagy | 2017-11-05 | 7 | -0/+7 |
| * | s390x: add syscall number for s390_guarded_storage from linux v4.12•••new syscall in linux commit 916cda1aa1b412d7cf2991c3af7479544942d121
| Szabolcs Nagy | 2017-11-05 | 1 | -0/+1 |
| * | i386: add arch_prctl syscall number from linux v4.12•••syscall for i386 compat mode on x86_64 for non-x86_64 prctls.
new in linux commit 79170fda313ed5be2394f87aa2a00d597f8ed4a1
| Szabolcs Nagy | 2017-11-05 | 1 | -0/+1 |
| * | aarch64: add new HWCAP_* flags from linux v4.12•••hwcap bits for armv8.3 extensions, added in linux commits
c8c3798d2369e4285da44b244638eafe446a8f8a
cb567e79fa504575cb97fb2f866d2040ed1c92e7
c651aae5a7732287c1c9bc974ece4ed798780544
| Szabolcs Nagy | 2017-11-05 | 1 | -0/+3 |
| * | add statx syscall numbers from linux v4.11•••statx was added in linux commit a528d35e8bfcc521d7cb70aaf03e1bd296c8493f
(there is no libc wrapper yet and microblaze and sh misses the number).
| Szabolcs Nagy | 2017-11-05 | 12 | -0/+12 |
| * | update aarch64 hwcap.h for linux v4.11•••new hwcap bits were added in kernel commits
77c97b4ee21290f5f083173d957843b615abbff2
f92f5ce01ee6a6a86cbfc4e3b0d18529c302b1ea
| Szabolcs Nagy | 2017-11-05 | 1 | -0/+2 |
| * | add kexec_file_load syscall number on powerpc from linux v4.10•••added in linux commit 80f60e509a03ff9ff2bdbf9cd1e935c6360b8bd9
| Szabolcs Nagy | 2017-11-05 | 2 | -0/+2 |
| * | add microblaze syscall numbers from linux v4.10•••missing syscalls got allocated on microblaze.
| Szabolcs Nagy | 2017-11-05 | 1 | -0/+6 |
| * | fix build regression on ARM for ISA levels less than v5•••commit 06fbefd10046a0fae7e588b7c6d25fb51811b931 (first included in
release 1.1.17) introduced this regression.
patch by Adrian Bunk. it fixes the regression in all cases, but
spuriously prevents use of the clz instruction on very old compiler
versions that don't define __ARM_ARCH. this may be fixed in a more
general way at some point in the future. it also omits thumb1 logic
since building as thumb1 code is currently not supported.
| Rich Felker | 2017-10-25 | 1 | -0/+4 |
| * | powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h•••MAP_{NORESERVE,LOCKED} have different values on powerpc than in generic.
| Szabolcs Nagy | 2017-09-11 | 2 | -1/+11 |
| * | make syscall.h consistent with linux•••most of the found naming differences don't matter to musl, because
internally it unifies the syscall names that vary across targets,
but for external code the names should match the kernel uapi.
aarch64:
__NR_fstatat is called __NR_newfstatat in linux.
__NR_or1k_atomic got mistakenly copied from or1k.
arm:
__NR_arm_sync_file_range is an alias for __NR_sync_file_range2
__NR_fadvise64_64 is called __NR_arm_fadvise64_64 in linux,
the old non-arm name is kept too, it should not cause issues.
(powerpc has similar nonstandard fadvise and it uses the
normal name.)
i386:
__NR_madvise1 was removed from linux in commit
303395ac3bf3e2cb488435537d416bc840438fcb 2011-11-11
microblaze:
__NR_fadvise, __NR_fstatat, __NR_pread, __NR_pwrite
had different name in linux.
mips:
__NR_fadvise, __NR_fstatat, __NR_pread, __NR_pwrite, __NR_select
had different name in linux.
mipsn32:
__NR_fstatat is called __NR_newfstatat in linux.
or1k:
__NR__llseek is called __NR_llseek in linux.
the old name is kept too because that's the name musl uses
internally.
powerpc:
__NR_{get,set}res{gid,uid}32 was never present in powerpc linux.
__NR_timerfd was briefly defined in linux but then got renamed.
| Szabolcs Nagy | 2017-09-06 | 10 | -24/+20 |
| * | arm: add HWCAP_ARM_ hwcap macros•••Glibc renamed the linux uapi HWCAP_* macros to HWCAP_ARM_*
so have both variants in case some code depends on it.
(The HWCAP2_ macros are not defined in glibc currently so those
only have the linux uapi variant.)
| Szabolcs Nagy | 2017-08-29 | 1 | -0/+24 |
| * | add a_clz_64 helper function•••counts leading zero bits of a 64bit int, undefined on zero input.
(has nothing to do with atomics, added to atomic.h so target specific
helper functions are together.)
there is a logarithmic generic implementation and another in terms of
a 32bit a_clz_32 on targets where that's available.
| Szabolcs Nagy | 2017-08-29 | 7 | -0/+49 |
| * | s390x: add bits/hwcap.h•••aligned with linux arch/s390/include/asm/elf.h
(these macros should be exported into uapi, but they are not)
| Szabolcs Nagy | 2017-08-29 | 1 | -0/+15 |
| * | add SIOCGSTAMPNS socket ioctl macro to ioctl.h•••it is defined in linux asm/sockios.h since commit
ae40eb1ef30ab4120bd3c8b7e3da99ee53d27a23 (linux v2.6.22)
but was missing from musl by accident.
in musl the sockios macros are exposed in sys/ioctl.h together
with other ioctl requests instead of in sys/socket.h because of
namespace rules. (glibc has them in sys/socket.h under _GNU_SOURCE.)
| Szabolcs Nagy | 2017-08-29 | 8 | -0/+8 |
| * | fix mips ioctl macros to match linux asm/sockios.h | Szabolcs Nagy | 2017-08-29 | 3 | -15/+15 |
| * | fix build failure for sh4a due to missing colon in asm statement•••Due to a missing ":" in an asm() statement, the "memory" clobber is
considered by gcc as an input operand and not a clobber, which causes a
build failure.
| Thomas Petazzoni | 2017-08-11 | 1 | -1/+1 |