Add sched_getcpu()(cherry picked from commit 77b2c2f81451db8119e4ea6398fe76813db790de)
riscv: Implement non-stub __vdso_gettc and __vdso_gettimekeepPR: 256905Reviewed by: arichardson, mhorneMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D30963(cherry picked
riscv: Implement non-stub __vdso_gettc and __vdso_gettimekeepPR: 256905Reviewed by: arichardson, mhorneMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D30963(cherry picked from commit 348c41d1815dc2e872a1deba1f4bf760caaa1094)
show more ...
Reimplement brk() and sbrk() to avoid the use of _end.Previously, libc.so would initialize its notion of the break addressusing _end, a special symbol emitted by the static linker followingthe bs
Reimplement brk() and sbrk() to avoid the use of _end.Previously, libc.so would initialize its notion of the break addressusing _end, a special symbol emitted by the static linker followingthe bss section. Compatibility issues between lld and ld.bfd couldcause the wrong definition of _end (libc.so's definition rather thanthat of the executable) to be used, breaking the brk()/sbrk()interface.Avoid this problem and future interoperability issues by simply notrelying on _end. Instead, modify the break() system call to returnthe kernel's view of the current break address, and have libcinitialize its state using an extra syscall upon the first use of theinterface. As a side effect, this appears to fix brk()/sbrk() usagein executables run with rtld direct exec, since the kernel and libc.sono longer maintain separate views of the process' break address.PR: 228574Reviewed by: kib (previous version)MFC after: 2 monthsDifferential Revision: https://reviews.freebsd.org/D15663
Remove architecture specific shmat.S files.These files are identical to the generated system calls.In the case of MIPS, the file was already disconnected from the build.Submitted by: Ali Mashtiz
Remove architecture specific shmat.S files.These files are identical to the generated system calls.In the case of MIPS, the file was already disconnected from the build.Submitted by: Ali Mashtizadeh <[email protected]>Reviewed by: kibDifferential Revision: https://reviews.freebsd.org/D14976
Remove architecture specific sigreturn.S files.All of these files are identical (modulo license blocks and VCS IDs) tothe files generated by lib/libc/sys/Makefile.inc and serve no purpose.Report
Remove architecture specific sigreturn.S files.All of these files are identical (modulo license blocks and VCS IDs) tothe files generated by lib/libc/sys/Makefile.inc and serve no purpose.Reported by: Ali Mashtizadeh <[email protected]>Reviewed by: kibSponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D14953
Use unconditional jr (jump register) so cerror relocation offset fits.This fixes libc build on riscv64sf.Reviewed by: jhbSponsored by: DARPA, AFRL
Reduce duplicate NOASM and PSEUDO definitionsThe initial value of NOASM is nearly the same in all cases and theinitial value of PSEUDO is the same in all cases so reduce duplication(and hopefully
Reduce duplicate NOASM and PSEUDO definitionsThe initial value of NOASM is nearly the same in all cases and theinitial value of PSEUDO is the same in all cases so reduce duplication(and hopefully, future merge conflicts) by machine independent defaults.Also document the PSEUDO variable.Reviewed by: jhb, kibObtained from: CheriBSDSponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D7820
Remove unusedd and obsolete openbsd_poll system call. (Phase 1)Reported by: brooksReviewed by: brooks,jhbDifferential Revision: https://reviews.freebsd.org/D7548
Replace use of the pipe(2) system call with pipe2(2) with a zero flagsvalue.This eliminates the need for machine dependant assembly wrappers forpipe(2).It also make passing an invalid address t
Replace use of the pipe(2) system call with pipe2(2) with a zero flagsvalue.This eliminates the need for machine dependant assembly wrappers forpipe(2).It also make passing an invalid address to pipe(2) return EFAULT ratherthan triggering a segfault. Document this behavior (which was alreadytrue for pipe2(2), but undocumented).Reviewed by: andrewApproved by: re (gjb)Sponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D6815
Do not generate code for sbrk syscall -- sbrk support was removed.Pointed out by: andrew
Remove legacy brk and sbrk from RISC-V.Discussed with: andrewSponsored by: DARPA, AFRLSponsored by: HEIF5
Bring in initial libc and libstand support for RISC-V.Reviewed by: andrew, emaste, kibSponsored by: DARPA, AFRLSponsored by: HEIF5Differential Revision: https://reviews.freebsd.org/D4943