freebsd-skq/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 Add hwpmc_arm.c 2009-12-23 23:53:30 +00:00
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 - Move .text and all sections up to .bss inclusive to the beginning of 2010-01-23 05:59:10 +00:00
ldscript.mips.cfe Use KERNLOADADDR instead of hardcoded address. This is required to be able to 2010-02-22 01:48:38 +00:00
ldscript.mips.mips64 Put back KERNLOADADDR. 2009-09-09 00:46:11 +00:00
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 Avoid hardcoding the kernel link address in the linker script. 2008-02-27 00:03:23 +00:00
ldscript.sparc64
Makefile.amd64 Add a kernel option for amd64 to compile with the frame on the stack 2008-05-23 03:52:55 +00:00
Makefile.arm Add support for Cavium Econa CNS11XX ARM boards. These boards were 2010-01-04 03:35:45 +00:00
Makefile.i386 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.ia64 Remove definition of the GCC3 variable. It was introduced in rev. 2007-06-02 21:30:39 +00:00
Makefile.mips Merge r187428, r191079, r195533, r195669, r197004, r197012 and r197015 2010-01-10 05:34:46 +00:00
Makefile.pc98 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.powerpc Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.sparc64 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.sun4v Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
makeLINT.mk Generate a second LINT configuration for i386 and amd64 in 2010-01-08 19:00:20 +00:00
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 Add CPU_CNMIPS for the core that's in Octeon CPUs. 2010-02-25 11:54:10 +00:00
options.pc98 Unbreak the build for pc98. Specify the newly introduced, for ia32, 2010-01-16 12:24:12 +00:00
options.powerpc Initial support for Freescale PowerQUICC III MPC85xx system-on-chip family. 2008-03-03 17:17:00 +00:00
options.sparc64 Add a driver for the `Fire' JBus to PCIe bridges found in at least 2009-12-27 16:55:44 +00:00
options.sun4v Remove remnants from the sparc64 origin of this file and which are 2007-01-19 12:22:50 +00:00
systags.sh