#
85007872 |
| 24-Jun-2025 |
Andrew Turner <andrew@FreeBSD.org> |
sys: Add AT_HWCAP3 and AT_HWCAP4
It is likely we will need these on arm64. Add them in preparation for flags in these to be added at some point in the future.
Reviewed by: brooks, imp, kib Sponsore
sys: Add AT_HWCAP3 and AT_HWCAP4
It is likely we will need these on arm64. Add them in preparation for flags in these to be added at some point in the future.
Reviewed by: brooks, imp, kib Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D51005
show more ...
|
Revision tags: release/14.3.0 |
|
#
503f752a |
| 04-Jun-2025 |
Brooks Davis <brooks@FreeBSD.org> |
sysent: retire unused SV_IA32
When COMPAT_IA32 was generaliaed to COMPAT_FREEBSD32 in 2010 (commit 841c0c7ec75b), all runtime uses of SV_IA32 were removed in favor of SV_ILP32 check. Given SV_ILP32
sysent: retire unused SV_IA32
When COMPAT_IA32 was generaliaed to COMPAT_FREEBSD32 in 2010 (commit 841c0c7ec75b), all runtime uses of SV_IA32 were removed in favor of SV_ILP32 check. Given SV_ILP32's existance it makes no sense to dynamically check for SV_IA32 (even if we had a 32-bit x86 ABI with 64-bit time_t we needed to differentiate, SV_IA32 would be the wrong spelling.) As such, remove SV_IA32 and mark the bit reserved.
Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D50672
show more ...
|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0 |
|
#
3fde2751 |
| 26-Dec-2023 |
Mark Johnston <markj@FreeBSD.org> |
linux: Check for copyout errors in linux_fixup()
This is in preparation for annotating copyin() and related functions with __result_use_check.
Reviewed by: olce, dchagin MFC after: 1 week Different
linux: Check for copyout errors in linux_fixup()
This is in preparation for annotating copyin() and related functions with __result_use_check.
Reviewed by: olce, dchagin MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43104
show more ...
|
Revision tags: release/14.0.0 |
|
#
5bdd74cc |
| 10-Oct-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Drop the outdated comments about sixth register on i386 int0x80
This is well documented in the Linux syscall(2).
MFC after: 1 week
|
#
39024a89 |
| 25-Sep-2023 |
Konstantin Belousov <kib@FreeBSD.org> |
syscalls: fix missing SIGSYS for several ENOSYS errors
In particular, when the syscall number is too large, or when syscall is dynamic. For that, add nosys_sysent structure to pass fake sysent to s
syscalls: fix missing SIGSYS for several ENOSYS errors
In particular, when the syscall number is too large, or when syscall is dynamic. For that, add nosys_sysent structure to pass fake sysent to syscall top code.
Reviewed by: dchagin, markj Discussed with: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D41976
show more ...
|
#
3460fab5 |
| 18-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Remove sys/cdefs.h inclusion where it's not needed due to 685dc743
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4281dab8 |
| 28-Jul-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Add elf_hwcap2 to x86
On x86 Linux via AT_HWCAP2 the user controlled (by tunables) processor capabilities are exposed.
Reviewed by: Differential Revision: https://reviews.freebsd.org/D411
linux(4): Add elf_hwcap2 to x86
On x86 Linux via AT_HWCAP2 the user controlled (by tunables) processor capabilities are exposed.
Reviewed by: Differential Revision: https://reviews.freebsd.org/D41165 MFC after: 2 weeks
show more ...
|
#
fd745e1d |
| 29-May-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Use pwd_altroot() to tell namei() about ABI root path
PR: 72920 Differential Revision: https://reviews.freebsd.org/D40090 MFC after: 2 month
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
#
7d8c9839 |
| 22-Apr-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Deduplicate linux_copyout_auxargs()
Export default MINSIGSTKSZ value for the x86 until we do not preserve AVX registers in the signal context.
Differential Revision: https://reviews.freeb
linux(4): Deduplicate linux_copyout_auxargs()
Export default MINSIGSTKSZ value for the x86 until we do not preserve AVX registers in the signal context.
Differential Revision: https://reviews.freebsd.org/D39644 MFC after: 1 month
show more ...
|
Revision tags: release/13.2.0 |
|
#
f4a512a5 |
| 14-Feb-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Cleanup includes under i386/linux
Cleanup unneeded includes, sort the rest according to style(9). No functional changes.
MFC after: 2 weeks
|
#
07db1f36 |
| 06-Feb-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Attach netlink on i386.
Discussed with: melifaro MFC after: 3 days
|
#
95b86034 |
| 02-Feb-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Deduplicate linux_trans_osrel().
MFC after: 1 week
|
#
6039e966 |
| 02-Feb-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Deduplicate linux_copyout_strings().
It is still present in the 32-bit Linuxulator on amd64.
MFC after: 1 week
|
#
9e550625 |
| 02-Feb-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Deduplicate linux_fixup_elf().
Use native routines to fixup initial process stack. On Arm64 linux_elf_fixup() is noop, as it do the stack fixup (room for argc) in the linux_copyout_strings
linux(4): Deduplicate linux_fixup_elf().
Use native routines to fixup initial process stack. On Arm64 linux_elf_fixup() is noop, as it do the stack fixup (room for argc) in the linux_copyout_strings().
MFC after: 1 week
show more ...
|
#
cc1b0f7d |
| 02-Feb-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Add coredump support to i386.
MFC after: 1 week
|
Revision tags: release/12.4.0 |
|
#
1da65dcb |
| 28-Oct-2022 |
Mitchell Horne <mhorne@FreeBSD.org> |
linux: populate sv_syscallnames in each sysentvec
This allows the syscallname() function to give a usable result for Linux ABIs.
Reported by: jrtc27 Reviewed by: jrtc27, markj, jhb MFC after: 1 wee
linux: populate sv_syscallnames in each sysentvec
This allows the syscallname() function to give a usable result for Linux ABIs.
Reported by: jrtc27 Reviewed by: jrtc27, markj, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37199
show more ...
|
#
361971fb |
| 02-Jun-2022 |
Kornel Dulęba <kd@FreeBSD.org> |
Rework how shared page related data is stored
Store the shared page address in struct vmspace. Also instead of storing absolute addresses of various shared page segments save their offsets with resp
Rework how shared page related data is stored
Store the shared page address in struct vmspace. Also instead of storing absolute addresses of various shared page segments save their offsets with respect to the shared page address. This will be more useful when the shared page address is randomized.
Approved by: mw(mentor) Sponsored by: Stormshield Obtained from: Semihalf Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D35393
show more ...
|
#
4a6c2d07 |
| 30-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Properly restore the thread signal mask after signal delivery on i386
Replace sigframe sf_extramask by native sigset_t and use it to store/restore the thread signal mask without conversion
linux(4): Properly restore the thread signal mask after signal delivery on i386
Replace sigframe sf_extramask by native sigset_t and use it to store/restore the thread signal mask without conversion to/from Linux signal mask.
Pointy hat to: dchagin MFC after: 2 weeks
show more ...
|
#
9016ec05 |
| 23-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
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
|
#
2434137f |
| 23-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Deduplicate translate_traps()
As translate_traps() is common for x86 Linuxulators, move it under x86/linux.
MFC after: 2 weeks
|
#
eca368ec |
| 20-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
Retire sv_transtrap
Call translate_traps directly from sendsig().
MFC after: 2 weeks
|
#
8f9635dc |
| 15-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Retire handmade DWARF annotations from signal trampolines
The Linux exports __kernel_sigreturn and __kernel_rt_sigreturn from the vdso. Modern glibc's sigaction sets the sa_restorer field
linux(4): Retire handmade DWARF annotations from signal trampolines
The Linux exports __kernel_sigreturn and __kernel_rt_sigreturn from the vdso. Modern glibc's sigaction sets the sa_restorer field of sigaction to the corresponding vdso __sigreturn, and sets the SA_RESTORER. Our signal trampolines uses the FreeBSD-way to call a signal handler, so does not use the sigaction's sa_restorer.
However, as glibc's runtime linker depends on the existment of the vdso __sigreturn symbols, for all Linuxulators was added separate trampolines named __sigcode with DWARF anotations and left separate __sigreturn methods, which are exported.
MFC after: 2 weeks
show more ...
|
#
6e826d27 |
| 15-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Better naming for ucontext field of struct rt_sigframe
To reduce sendsig code difference and to avoid confusing me, rename sf_sc to sf_uc to match the content.
MFC after: 2 weeks
|