freebsd-dev/sys/i386/linux
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
..
imgact_linux.c Implement lockless resource limits. 2015-06-10 10:48:12 +00:00
linux_dummy.c Implement Linux mincore() system call. 2017-03-25 15:47:29 +00:00
linux_genassym.c Implement vdso - virtual dynamic shared object. Through vdso Linux 2015-05-24 15:28:17 +00:00
linux_locore.s Being exported through vdso the note.Linux section used by glibc 2015-05-24 16:25:44 +00:00
linux_machdep.c Replace sys_ftruncate() with kern_ftruncate() in various compats. 2017-01-30 11:50:54 +00:00
linux_proto.h Regenerated Linuxulator syscall tables for r314782 2017-03-06 18:20:37 +00:00
linux_ptrace.c For i386, remove config options CPU_DISABLE_CMPXCHG, CPU_DISABLE_SSE 2017-02-03 12:51:40 +00:00
linux_support.s Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
linux_syscall.h Regenerated Linuxulator syscall tables for r314782 2017-03-06 18:20:37 +00:00
linux_syscalls.c Regenerated Linuxulator syscall tables for r314782 2017-03-06 18:20:37 +00:00
linux_sysent.c Regenerated Linuxulator syscall tables for r314782 2017-03-06 18:20:37 +00:00
linux_systrace_args.c Regenerated Linuxulator syscall tables for r314782 2017-03-06 18:20:37 +00:00
linux_sysvec.c Move struct syscall_args syscall arguments parameters container into 2017-06-12 21:03:23 +00:00
linux_vdso.lds.s Implement vdso - virtual dynamic shared object. Through vdso Linux 2015-05-24 15:28:17 +00:00
linux.h Trying to be more compatible with Linux if.h definitions: 2017-04-08 14:41:39 +00:00
Makefile Don't create pointless backups of generated files in "make sysent". 2016-07-28 21:29:04 +00:00
syscalls.conf
syscalls.master Add UNIMPLEMENTED() placeholder macro for 2017-03-06 18:11:38 +00:00