| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
(cherry picked from commit 7acc4240ce00af540093b47ad00be0508310b515)
|
| |
|
|
|
|
|
| |
Remove /^\s*\$FreeBSD\$$\n/
Similar commit in current:
(cherry picked from commit 78d146160dc5)
|
| |
|
|
|
|
|
| |
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Similar commit in current:
(cherry picked from commit 031beb4e239b)
|
| |
|
|
|
|
|
| |
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Similar commit in current:
(cherry picked from commit 685dc743dc3b)
|
| |
|
|
|
|
|
| |
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
Similar commit in current:
(cherry picked from commit 2ff63af9b88c)
|
| |
|
|
|
|
|
| |
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
Similar commit in current:
(cherry picked from commit 95ee2897e98f)
|
| |
|
|
|
|
|
|
|
|
|
| |
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
(cherry picked from commit 4281dab8bc11b3b2f3b58be5e0f67806329bddae)
|
| |
|
|
|
|
|
|
|
|
|
| |
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
(cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
|
| |
|
|
|
|
|
|
|
| |
PR: 270247
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D40444
MFC after: 2 weeks
(cherry picked from commit cbbac560911521c0ded3e06e713107176855fae4)
|
| |
|
|
|
|
|
|
|
|
|
| |
Due to fxsave area is os independent reimplement fxsave handmade code
using copying of a whole area.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D40443
MFC after: 2 weeks
(cherry picked from commit 920184ed6e43b19f4b71253b55fd3ba66a7f0bb2)
|
| |
|
|
|
|
|
|
| |
Replace caddr_t by more appropriate char *.
MFC after: 2 weeks
(cherry picked from commit 84617f6fccd45505f3eeebad1c8cdce1140b7f8e)
|
| |
|
|
|
|
|
|
|
|
| |
Get rid of using register numbers which is undefined in libunwind
on x86_64.
Differential Revision: https://reviews.freebsd.org/D40156
MFC after: 1 month
(cherry picked from commit 78c2e58fa5b0aa4518d79d8155c0513b9a04f531)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Perhaps, this does not makes much sense as destroyng %rcx declared by
the x86_64 Linux syscall ABI. However,:
a) if we get a signal while we are in the kernel, we should restore
tf_rcx when preparing machine context for signal handlers.
b) the Linux world is strange, someone can depend on %rcx value
after syscall, something like go.
Differential Revision: https://reviews.freebsd.org/D40155
MFC after: 1 month
(cherry picked from commit 037b60fb0fbcb2dd6b6cbb632b05a2939ff4ff29)
|
| |
|
|
|
|
|
|
|
| |
Restore %r10 at system call entry to avoid doing this multiply times.
Differential Revision: https://reviews.freebsd.org/D40154
MFC after: 1 month
(cherry picked from commit 185bd9fa3096595350ebe7bcd7e0ddcf17773030)
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D40153
MFC after: 1 month
(cherry picked from commit a463dd810851fdae5efcb8f8205d742ebf221bc8)
|
| |
|
|
|
|
|
|
|
|
|
| |
I agree, it would be great to avoid PCB_FULL_IRET, however we should
follow Linux system call ABI.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D40152
MFC after: 1 month
(cherry picked from commit a99b890ecd26131e0c91e5693b55f5700c40a847)
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D40097
MFC after: 1 week
(cherry picked from commit 1d76741520c031730319ed976a6c394213991504)
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D40096
MFC after: 1 week
(cherry picked from commit 3d0addcd35193461e927db6cfe4b6d9b579eed6b)
|
| |
|
|
|
|
|
|
|
| |
And partially implement it for x86_64.
Differential Revision: https://reviews.freebsd.org/D40095
MFC after: 1 week
(cherry picked from commit dd2a6cd701aea5a6ced59b9947e087304f7d7238)
|
| |
|
|
| |
(cherry picked from commit cd0fca82bb86e9287d7eacefead1b02766986762)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit unsigned integer
on all platforms. Prior the 2.6 kernel dev_t type was an unsigned short.
However, since the firs commit of the Linuxulator, mknod syscall get int dev
argument.
Also, there is some confusion here, while the kernel declares a dev_t type
as a 32-bit sized, the user-space dev_t type can be size of 64 bits, e.g.,
in the Glibc library.
To avoid confusion and to help porting of the Linuxulator to other platforms
use explicit l_dev_t for dev argument of mknod syscalls.
(cherry picked from commit ca3333dd4a3bef7b615d5df104c525f8cac51b26)
|
| |
|
|
|
|
|
| |
As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit unsigned integer
on all platforms. Move it into the MI linux.h under /compat/linux.
(cherry picked from commit 19973638bee2205be2a7eb07bc154b8afb1e44a3)
|
| |
|
|
|
|
| |
In the struct stat the st_dev, st_rdev are unsigned long.
(cherry picked from commit e0bfe0d62ca708c8c6173296cc05f6bbfb79b2ee)
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D39645
MFC after: 1 month
(cherry picked from commit 56c5230afdcf2b317d904009abe577e91b382542)
|
| |
|
|
|
|
|
|
|
|
| |
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
(cherry picked from commit 7d8c98398302b939b97310d31883ebdab8c0b938)
|
| |
|
|
|
|
| |
MFC after: 2 weeks
(cherry picked from commit 50111714f5a46add66264d48456c32b7d3d0036a)
|
| |
|
|
|
|
| |
MFC after: 2 weeks
(cherry picked from commit 1c27dce1f8979e7bbe3ca51f4f2db38b202042a0)
|
| |
|
|
|
|
|
|
|
|
|
| |
To avoid confusing people, rename linux_timer.h to linux_time.h,
as linux_timer.c is the implementation of timer syscalls only,
while linux_time.c contains implementation of all stuff declared
in linux_time.h.
MFC after: 2 weeks
(cherry picked from commit c8a79231a5a74fc4263ec3d18c6519a974efb529)
|
| |
|
|
|
|
|
|
|
| |
Cleanup unneeded includes, sort the rest according to style(9).
No functional changes.
MFC after: 2 weeks
(cherry picked from commit 2456a45929328ce73a40ef6577600b0f1e2cced6)
|
| |
|
|
|
|
|
|
|
|
| |
Include vm headers directly where they needed. The linux_util.h included
in a most source files of the Linuxulator, avoid collecting a rarely used
includes here.
MFC after: 2 weeks
(cherry picked from commit 31e938c531dcbb708dbcd0e1d0a4ea80dcc82300)
|
| |
|
|
|
|
| |
MFC after: 1 week
(cherry picked from commit ce20c00e858f209f42d404eca597553e461e0892)
|
| |
|
|
|
|
|
|
|
|
|
| |
Drop proc lock earlier, before copying user stuff.
Pointed out by: kib
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D38326
MFC after: 1 week
(cherry picked from commit 6ad07a4b2bdf0856545ff8495a7b3396695814fa)
|
| |
|
|
|
|
|
|
|
| |
PR: 240768
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D38302
MFC after: 1 week
(cherry picked from commit a95cb95e12e537dbe70f9de18cc0fe98e4a5ebf5)
|
| |
|
|
|
|
| |
MFC after: 1 week
(cherry picked from commit 95b8603427d5759c5d6090ffaacfaf7f3b8fb926)
|
| |
|
|
|
|
|
|
| |
It is still present in the 32-bit Linuxulator on amd64.
MFC after: 1 week
(cherry picked from commit 6039e966ff276ff6bcb57f2f70e7d8ff376b24fd)
|
| |
|
|
|
|
|
|
|
| |
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
(cherry picked from commit 9e550625f867a23ea3d87a77aa3c216b79ecd790)
|
| |
|
|
|
|
|
|
|
| |
In order to reduce code duplication move coredump support definitions
into the appropriate header and hide private definitions.
MFC after: 1 week
(cherry picked from commit 7446514533a40b376eaeb349ea33531ce9c711c2)
|
| |
|
|
|
|
| |
MFC after: 1 week
(cherry picked from commit 575e48f1c4eb05fe8df6aaeb5f55e17c63a02639)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
(cherry picked from commit 1da65dcb1c57fae7be75ddf1bd300ddf19ced850)
(cherry picked from commit f396f9b6c96f6d68d4e3606ddb090287230fc565)
|
| |
|
|
|
|
| |
MFC after: 2 weeks
(cherry picked from commit d416ee86c73bef55ba29c25cd594156441f1daa9)
|
| |
|
|
|
|
|
|
| |
Provide arguments 2 and 3 if signal handler installed with SA_SIGINFO.
MFC after: 2 weeks
(cherry picked from commit 109fd18ad96957c25cfaa78da2f825c729e33fef)
|
| |
|
|
|
|
|
|
|
|
| |
On amd64 Linux saves the thread signal mask in both contexts, in the machine
dependent and in the machine independent. Both contexts are user accessible.
Convert the mask once, then copy it.
MFC after: 2 weeks
(cherry picked from commit c30a767c6fd6d3f19e897fb800513e75175249b9)
|
| |
|
|
|
|
|
|
|
| |
Use kern_sigprocmask() instead of direct manipulation of td_sigmask
to reschedule newly blocked signals.
MFC after: 2 weeks
(cherry picked from commit 2ab9b59faafb68402dbebc285b424cfb06b59cf3)
|
| |
|
|
|
|
|
|
|
| |
Move sigprocmask actions defines under compat/linux,
they are identical across all Linux architectures.
MFC after: 2 weeks
(cherry picked from commit 2ca34847e7288fba6b2a15e64648238bc12e4960)
|
| |
|
|
|
|
|
|
|
|
| |
As linux_execve is common across archs, except amd64 32-bit Linuxulator,
move it under compat/linux.
Noted by: andrew@
MFC after: 2 weeks
(cherry picked from commit 26700ac0c4d0466c00f944bde9613d18625d1f91)
|
| |
|
|
|
|
|
|
|
| |
As bsd_to_linux_trapcode() is common for x86 Linuxulators,
move it under x86/linux.
MFC after: 2 weeks
(cherry picked from commit 9016ec056ae3896522798ead39bb2f3ff4f68809)
|
| |
|
|
|
|
|
|
|
| |
As translate_traps() is common for x86 Linuxulators,
move it under x86/linux.
MFC after: 2 weeks
(cherry picked from commit 2434137f690dabc35586ab45fc4c4ecc5b71184f)
|
| |
|
|
|
|
|
|
| |
Call translate_traps directly from sendsig().
MFC after: 2 weeks
(cherry picked from commit eca368ecb6e00e9db7e1c090e98a29439d255895)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
(cherry picked from commit 8f9635dc99f571a0ae4e613b9a0439e68da7b160)
|
| |
|
|
|
|
|
|
|
| |
To reduce sendsig code difference and to avoid confusing me,
rename sf_sc to sf_uc to match the content.
MFC after: 2 weeks
(cherry picked from commit 6e826d27c340fa29e166d06e5d8553f6c63c409e)
|