linux(4): Remove sys/cdefs.h inclusion under x86/linux due to 685dc743
sys: Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
sys: Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
linux(4): Add elf_hwcap2 to x86On x86 Linux via AT_HWCAP2 the user controlled (by tunables) processorcapabilities are exposed.Reviewed by:Differential Revision: https://reviews.freebsd.org/D411
linux(4): Add elf_hwcap2 to x86On x86 Linux via AT_HWCAP2 the user controlled (by tunables) processorcapabilities are exposed.Reviewed by:Differential Revision: https://reviews.freebsd.org/D41165MFC after: 2 weeks
show more ...
linux(4): Preserve fpu xsave state across signal delivery on amd64PR: 270247Reviewed by: kibDifferential Revision: https://reviews.freebsd.org/D40444MFC after: 2 weeks
linux(4): In preparation for xsave refactor fxsave code on amd64Due to fxsave area is os independent reimplement fxsave handmade codeusing copying of a whole area.Reviewed by: kibDifferential
linux(4): In preparation for xsave refactor fxsave code on amd64Due to fxsave area is os independent reimplement fxsave handmade codeusing copying of a whole area.Reviewed by: kibDifferential Revision: https://reviews.freebsd.org/D40443MFC after: 2 weeks
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
linux(4): Cleanup includes under x86/linuxCleanup unneeded includes, sort the rest according to style(9).No functional changes.MFC after: 2 weeks
linux(4): Get rid of the opt_compat.h include.Since e013e369 COMPAT_LINUX, COMPAT_LINUX32 build options are removed,so include of opt_compat.h is no more needed.MFC after: 2 weeks
linux(4): Preserve fpu fxsave state across signal delivery on amd64.PR: 240768Reviewed by: kibDifferential Revision: https://reviews.freebsd.org/D38302MFC after: 1 week
Adjust linux_vdso_{cpu,tsc}_selector_idx() definitions to avoid clang 15 warningsWith clang 15, the following -Werror warnings are produced: sys/x86/linux/linux_vdso_selector_x86.c:44:28: erro
Adjust linux_vdso_{cpu,tsc}_selector_idx() definitions to avoid clang 15 warningsWith clang 15, the following -Werror warnings are produced: sys/x86/linux/linux_vdso_selector_x86.c:44:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] linux_vdso_tsc_selector_idx() ^ void sys/x86/linux/linux_vdso_selector_x86.c:62:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] linux_vdso_cpu_selector_idx() ^ voidThis is because linux_vdso_tsc_selector_idx() andlinux_vdso_cpu_selector_idx are declared with (void) argument lists, butdefined with empty argument lists. Make the definitions match thedeclarations.MFC after: 3 days
linux(4): Use saved cpu feature bitsMFC after: 3 days
linux(4): Properly restore the thread signal mask after signal delivery on i386Replace sigframe sf_extramask by native sigset_t and use it tostore/restore the thread signal mask without conversion
linux(4): Properly restore the thread signal mask after signal delivery on i386Replace sigframe sf_extramask by native sigset_t and use it tostore/restore the thread signal mask without conversion to/fromLinux signal mask.Pointy hat to: dchaginMFC after: 2 weeks
linux(4): Deduplicate bsd_to_linux_trapcode()As bsd_to_linux_trapcode() is common for x86 Linuxulators,move it under x86/linux.MFC after: 2 weeks
linux(4): Deduplicate translate_traps()As translate_traps() is common for x86 Linuxulators,move it under x86/linux.MFC after: 2 weeks
linux(4): Better naming for ucontext field of struct rt_sigframeTo reduce sendsig code difference and to avoid confusing me,rename sf_sc to sf_uc to match the content.MFC after: 2 weeks
linux(4): Move sigframe definitions to separate headersThe signal trampoine-related definitions are used only in the MD partof code, wherefore moved from everywhere used linux.h to separate MDhea
linux(4): Move sigframe definitions to separate headersThe signal trampoine-related definitions are used only in the MD partof code, wherefore moved from everywhere used linux.h to separate MDheaders.MFC after: 2 weeks
linux(4): Implement vdso getcpu for x86.This is modeled after f2395455 (by kib@).MFC after: 2 weeks
linux(4): Refactor vdso_gettc_x86 includes.Factor out includes from common vdso_gettc_x86 file to the correspondingMD files.MFC after: 2 weeks
Drop "All rights reserved" from my copyright statements.Add email and fixup years while here.Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D30912MFC after: 2 weeks
linux(4); Almost complete the vDSO.The vDSO (virtual dynamic shared object) is a small shared library that thekernel maps R/O into the address space of all Linux processes on imageactivation. The
linux(4); Almost complete the vDSO.The vDSO (virtual dynamic shared object) is a small shared library that thekernel maps R/O into the address space of all Linux processes on imageactivation. The vDSO is a fully formed ELF image, shared by all processeswith the same ABI, has no process private data.The primary purpose of the vDSO:- non-executable stack, signal trampolines not copied to the stack;- signal trampolines unwind, mandatory for the NPTL;- to avoid contex-switch overhead frequently used system calls can be implemented in the vDSO: for now gettimeofday, clock_gettime.The first two have been implemented, so add the implementation of systemcalls.System calls implemenation based on a native timekeeping code with somelimitations:- ifunc can't be used, as vDSO r/o mapped to the process VA and rtld can't relocate symbols;- reading HPET memory is not implemented for now (TODO).In case on any error vDSO system calls fallback to the kernel systemcalls. For unimplemented vDSO system calls added prototypes which callcorresponding kernel system call.Tested by: trasz (arm64)Differential revision: https://reviews.freebsd.org/D30900MFC after: 2 weeks
linux: deduplicate DUMMY() entriesNo functional changes.Reviewed By: emasteSponsored By: EPSRCDifferential Revision: https://reviews.freebsd.org/D30524
linux(4): Deduplicate unimpl/dummy syscall handlersNo functional change.Reviewed by: emaste, traszDifferential Revision: https://reviews.freebsd.org/D27099