freebsd-dev/sys/compat
Konstantin Belousov 2d88da2f06 Move struct syscall_args syscall arguments parameters container into
struct thread.

For all architectures, the syscall trap handlers have to allocate the
structure on the stack.  The structure takes 88 bytes on 64bit arches
which is not negligible.  Also, it cannot be easily found by other
code, which e.g. caused duplication of some members of the structure
to struct thread already.  The change removes td_dbg_sc_code and
td_dbg_sc_nargs which were directly copied from syscall_args.

The structure is put into the copied on fork part of the struct thread
to make the syscall arguments information correct in the child after
fork.

This move will also allow several more uses shortly.

Reviewed by:	jhb (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	3 weeks
X-Differential revision:	https://reviews.freebsd.org/D11080
2017-06-12 21:03:23 +00:00
..
cloudabi Include <sys/systm.h> to obtain the memcpy() prototype. 2017-03-24 07:09:33 +00:00
cloudabi32 Make file descriptor passing for CloudABI's recvmsg() work. 2017-03-22 19:20:39 +00:00
cloudabi64 Make file descriptor passing for CloudABI's recvmsg() work. 2017-03-22 19:20:39 +00:00
freebsd32 Enhance vfs.ino64_trunc_error sysctl. 2017-06-09 11:17:08 +00:00
ia32 Move struct syscall_args syscall arguments parameters container into 2017-06-12 21:03:23 +00:00
linprocfs Fix linprocfs_docpuinfo() output regarding to what newer Linux apps expect 2017-05-06 17:37:01 +00:00
linsysfs Glibc get_nprocs() and get_nprocs_conf() uses the sysfs cpu infrastructure 2017-03-18 18:38:12 +00:00
linux Remove the outdated definition. 2017-06-12 07:48:51 +00:00
linuxkpi/common Implement pci_disable_device() in the LinuxKPI. 2017-06-09 19:57:27 +00:00
ndis Fix regression in ndis(4) after r286410. This adds a bunch of checks for 2017-05-22 20:00:01 +00:00
netbsd Remove some more NetBSD compat shims and other unused bits from these 2012-09-10 18:49:49 +00:00
x86bios x86bios: spelling fix in a comment. 2016-04-30 00:34:04 +00:00