freebsd-dev/sys/conf
Konstantin Belousov afe1a68827 Reorganize syscall entry and leave handling.
Extend struct sysvec with three new elements:
sv_fetch_syscall_args - the method to fetch syscall arguments from
  usermode into struct syscall_args. The structure is machine-depended
  (this might be reconsidered after all architectures are converted).
sv_set_syscall_retval - the method to set a return value for usermode
  from the syscall. It is a generalization of
  cpu_set_syscall_retval(9) to allow ABIs to override the way to set a
  return value.
sv_syscallnames - the table of syscall names.

Use sv_set_syscall_retval in kern_sigsuspend() instead of hardcoding
the call to cpu_set_syscall_retval().

The new functions syscallenter(9) and syscallret(9) are provided that
use sv_*syscall* pointers and contain the common repeated code from
the syscall() implementations for the architecture-specific syscall
trap handlers.

Syscallenter() fetches arguments, calls syscall implementation from
ABI sysent table, and set up return frame. The end of syscall
bookkeeping is done by syscallret().

Take advantage of single place for MI syscall handling code and
implement ptrace_lwpinfo pl_flags PL_FLAG_SCE, PL_FLAG_SCX and
PL_FLAG_EXEC. The SCE and SCX flags notify the debugger that the
thread is stopped at syscall entry or return point respectively.  The
EXEC flag augments SCX and notifies debugger that the process address
space was changed by one of exec(2)-family syscalls.

The i386, amd64, sparc64, sun4v, powerpc and ia64 syscall()s are
changed to use syscallenter()/syscallret(). MIPS and arm are not
converted and use the mostly unchanged syscall() implementation.

Reviewed by:	jhb, marcel, marius, nwhitehorn, stas
Tested by:	marcel (ia64), marius (sparc64), nwhitehorn (powerpc),
	stas (mips)
MFC after:	1 month
2010-05-23 18:32:02 +00:00
..
defines
files Reorganize syscall entry and leave handling. 2010-05-23 18:32:02 +00:00
files.amd64 Unify local_apic.c for x86 archs, 2010-05-23 17:45:01 +00:00
files.arm
files.i386 Unify local_apic.c for x86 archs, 2010-05-23 17:45:01 +00:00
files.ia64 Provide groundwork for 32-bit binary compatibility on non-x86 platforms, 2010-03-11 14:49:06 +00:00
files.mips Remove unused file. 2010-04-19 07:51:57 +00:00
files.pc98 Unify local_apic.c for x86 archs, 2010-05-23 17:45:01 +00:00
files.powerpc Add support for the U4 PCI-Express bridge chipset used in late-generation 2010-05-16 15:18:25 +00:00
files.sparc64 Change ad_firmware_geom_adjust() to operate on a struct disk * only and 2010-05-20 12:46:19 +00:00
files.sun4v Fix some sorting and whitespace nits. 2010-04-24 16:27:43 +00:00
kern.mk WITH_CTF can now be specified in src.conf (not recommended, there 2010-04-02 06:55:31 +00:00
kern.post.mk WITH_CTF can now be specified in src.conf (not recommended, there 2010-04-02 06:55:31 +00:00
kern.pre.mk Revert r206179 (by imp) and do something similar which is more consistent 2010-04-22 09:20:17 +00:00
kmod_syms.awk
kmod.mk Import mvs(4) - Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA controllers 2010-05-02 19:28:30 +00:00
ldscript.amd64
ldscript.arm
ldscript.i386
ldscript.ia64
ldscript.mips
ldscript.mips.cfe
ldscript.mips.mips64
ldscript.mips.octeon1.32 Harmonize Octeon ldscripts, reducing gratuitous diffs and using KERNLOADADDR in 2010-03-05 23:03:20 +00:00
ldscript.mips.octeon1.64 Harmonize Octeon ldscripts, reducing gratuitous diffs and using KERNLOADADDR in 2010-03-05 23:03:20 +00:00
ldscript.mips.octeon1.n32 Harmonize Octeon ldscripts, reducing gratuitous diffs and using KERNLOADADDR in 2010-03-05 23:03:20 +00:00
ldscript.powerpc
ldscript.sparc64
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.ia64
Makefile.mips
Makefile.pc98
Makefile.powerpc
Makefile.sparc64
Makefile.sun4v
makeLINT.mk
makeLINT.sed
newvers.sh Revert to r197433, the more recent change doesn't work for the common 2010-03-10 01:00:37 +00:00
NOTES Import mvs(4) - Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA controllers 2010-05-02 19:28:30 +00:00
options Allow the USB_REQ_DEBUG to be enabled in the kernel conf. 2010-05-13 20:48:39 +00:00
options.amd64 Provide groundwork for 32-bit binary compatibility on non-x86 platforms, 2010-03-11 14:49:06 +00:00
options.arm Add support for FA626TE. 2010-05-04 10:14:05 +00:00
options.i386 Make NKPT a kernel option on i386 so that it can be set to a non-default 2010-03-10 19:50:52 +00:00
options.ia64 Provide groundwork for 32-bit binary compatibility on non-x86 platforms, 2010-03-11 14:49:06 +00:00
options.mips
options.pc98
options.powerpc
options.sparc64
options.sun4v
systags.sh