freebsd-dev/sys/conf
Marcel Moolenaar f2c49dd248 Revamp of the syscall path, exception and context handling. The
prime objectives are:
o  Implement a syscall path based on the epc inststruction (see
   sys/ia64/ia64/syscall.s).
o  Revisit the places were we need to save and restore registers
   and define those contexts in terms of the register sets (see
   sys/ia64/include/_regset.h).

Secundairy objectives:
o  Remove the requirement to use contigmalloc for kernel stacks.
o  Better handling of the high FP registers for SMP systems.
o  Switch to the new cpu_switch() and cpu_throw() semantics.
o  Add a good unwinder to reconstruct contexts for the rare
   cases we need to (see sys/contrib/ia64/libuwx)

Many files are affected by this change. Functionally it boils
down to:
o  The EPC syscall doesn't preserve registers it does not need
   to preserve and places the arguments differently on the stack.
   This affects libc and truss.
o  The address of the kernel page directory (kptdir) had to
   be unstaticized for use by the nested TLB fault handler.
   The name has been changed to ia64_kptdir to avoid conflicts.
   The renaming affects libkvm.
o  The trapframe only contains the special registers and the
   scratch registers. For syscalls using the EPC syscall path
   no scratch registers are saved. This affects all places where
   the trapframe is accessed. Most notably the unaligned access
   handler, the signal delivery code and the debugger.
o  Context switching only partly saves the special registers
   and the preserved registers. This affects cpu_switch() and
   triggered the move to the new semantics, which additionally
   affects cpu_throw().
o  The high FP registers are either in the PCB or on some
   CPU. context switching for them is done lazily. This affects
   trap().
o  The mcontext has room for all registers, but not all of them
   have to be defined in all cases. This mostly affects signal
   delivery code now. The *context syscalls are as of yet still
   unimplemented.

Many details went into the removal of the requirement to use
contigmalloc for kernel stacks. The details are mostly CPU
specific and limited to exception_save() and exception_restore().
The few places where we create, destroy or switch stacks were
mostly simplified by not having to construct physical addresses
and additionally saving the virtual addresses for later use.

Besides more efficient context saving and restoring, which of
course yields a noticable speedup, this also fixes the dreaded
SMP bootup problem as a side-effect. The details of which are
still not fully understood.

This change includes all the necessary backward compatibility
code to have it handle older userland binaries that use the
break instruction for syscalls. Support for break-based syscalls
has been pessimized in favor of a clean implementation. Due to
the overall better performance of the kernel, this will still
be notived as an improvement if it's noticed at all.

Approved by: re@ (jhb)
2003-05-16 21:26:42 +00:00
..
defines
files Add files for the 'ips' driver. 2003-05-11 06:37:52 +00:00
files.alpha Separate the encoding/decoding functions for struct disklabel into a 2003-04-17 07:39:03 +00:00
files.amd64 Run $S/kern/genassym.sh with the correct NM. 2003-05-16 02:27:17 +00:00
files.i386 Update to reflect tw removal. 2003-04-27 05:40:53 +00:00
files.ia64 Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
files.pc98 - Move decoding pc98_partition function into geom_pc98_enc.c. 2003-05-01 13:44:24 +00:00
files.powerpc Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
files.sparc64 Update GEOM::SUN to use the decoding functions in geom_sunlabel_enc.c 2003-04-21 19:54:11 +00:00
kern.mk Use C99 for the kernel. 2003-05-03 18:05:56 +00:00
kern.post.mk Help out with linting. Print the ${LINT} command line. This makes 2003-04-30 12:19:25 +00:00
kern.pre.mk Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
kmod_syms.awk Our awk does not implement the ARGIND variable, so we were attempting 2002-08-06 19:31:04 +00:00
kmod.mk exists() is too aggressive when searching for files without a full path. 2003-03-03 22:51:22 +00:00
ldscript.alpha Use the new freebsd output format from Binutils 2.13.1. 2002-10-11 19:38:04 +00:00
ldscript.amd64 Sync up with the files in the hammer branch in the p4 tree to get basic 2003-05-01 02:59:24 +00:00
ldscript.i386 Add two symbols start_ctors and stop_ctors to allow us to find the 2003-01-06 07:37:15 +00:00
ldscript.ia64 Sync the linker script with the one used by default for userland. Since 2003-05-16 06:03:45 +00:00
ldscript.powerpc Page align the data segment. 2001-10-08 10:43:34 +00:00
ldscript.sparc64 Add kernbase symbol and use it instead of magic numbers in the 2001-09-21 05:43:38 +00:00
majors garbage collect the reserved major for the ips disk device. GEOM makes 2003-05-11 06:18:33 +00:00
majors.awk Add necessary awk magic to create a table of major numbers allocated 2003-02-27 08:52:11 +00:00
Makefile.alpha Bump the config version to force people to upgrade their config(8) 2003-04-15 21:29:11 +00:00
Makefile.amd64 Remove special hacks for FSF cross tools now that it builds natively. 2003-05-10 01:12:24 +00:00
Makefile.i386 Bump the config version to force people to upgrade their config(8) 2003-04-15 21:29:11 +00:00
Makefile.ia64 Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
Makefile.pc98 Bump the config version to force people to upgrade their config(8) 2003-04-15 21:29:11 +00:00
Makefile.powerpc Bump the config version to force people to upgrade their config(8) 2003-04-15 21:29:11 +00:00
Makefile.sparc64 Bump the config version to force people to upgrade their config(8) 2003-04-15 21:29:11 +00:00
makeLINT.mk Implemented "nooption" and "nomakeoption" config(8) tokens. 2003-02-26 23:36:59 +00:00
makeLINT.sed Implemented "nooption" and "nomakeoption" config(8) tokens. 2003-02-26 23:36:59 +00:00
newvers.sh We are now in 5.1-BETA 2003-05-06 03:55:24 +00:00
NOTES Clear up that COMPAT_43 may not do the same thing on every architecture 2003-05-15 02:10:30 +00:00
options Update the DRM to the latest from DRI CVS. Includes some bugfixes and removal 2003-04-25 01:18:47 +00:00
options.alpha Move SHOW_BUSYBUFS and PANIC_REBOOT_WAIT_TIME into the MI options file, since 2002-11-18 06:17:07 +00:00
options.amd64 Add BASIC i386 binary support for the amd64 kernel. This is largely 2003-05-14 04:10:49 +00:00
options.i386 Options that go into homonymous headers shouldn't specify the header name. 2003-04-12 09:40:37 +00:00
options.ia64 Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
options.pc98 Options that go into homonymous headers shouldn't specify the header name. 2003-04-12 09:40:37 +00:00
options.powerpc Options that go into homonymous headers shouldn't specify the header name. 2003-04-12 09:40:37 +00:00
options.sparc64 Move SHOW_BUSYBUFS and PANIC_REBOOT_WAIT_TIME into the MI options file, since 2002-11-18 06:17:07 +00:00
systags.sh $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00