freebsd-skq/sys
Peter Wemm a2a1c95c10 The biggie: Get rid of the UPAGES from the top of the per-process address
space. (!)

Have each process use the kernel stack and pcb in the kvm space.  Since
the stacks are at a different address, we cannot copy the stack at fork()
and allow the child to return up through the function call tree to return
to user mode - create a new execution context and have the new process
begin executing from cpu_switch() and go to user mode directly.
In theory this should speed up fork a bit.

Context switch the tss_esp0 pointer in the common tss.  This is a lot
simpler since than swithching the gdt[GPROC0_SEL].sd.sd_base pointer
to each process's tss since the esp0 pointer is a 32 bit pointer, and the
sd_base setting is split into three different bit sections at non-aligned
boundaries and requires a lot of twiddling to reset.

The 8K of memory at the top of the process space is now empty, and unmapped
(and unmappable, it's higher than VM_MAXUSER_ADDRESS).

Simplity the pmap code to manage process contexts, we no longer have to
double map the UPAGES, this simplifies and should measuably speed up fork().

The following parts came from John Dyson:

Set PG_G on the UPAGES that are now in kernel context, and invalidate
them when swapping them out.

Move the upages object (upobj) from the vmspace to the proc structure.

Now that the UPAGES (pcb and kernel stack) are out of user space, make
rfork(..RFMEM..) do what was intended by sharing the vmspace
entirely via reference counting rather than simply inheriting the mappings.
1997-04-07 07:16:06 +00:00
..
alpha Removed potentially harmful garbage <vm/lock.h> and fixed bogus 1997-04-01 08:39:07 +00:00
amd64 The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
compat/linux Remove dependancy on UFS' DIRBLKSIZ definition. 1997-04-06 10:10:50 +00:00
compile
conf Documented new serial console flags. 1997-04-07 01:26:34 +00:00
ddb Fixed gratuitous ANSIisms. 1997-04-01 14:31:06 +00:00
dev Make MOD_* macros almost consistent: 1997-04-06 11:14:13 +00:00
fs Fix the gdb executable modify problem. Thanks to the detective work 1997-04-06 02:29:45 +00:00
geom Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include 1997-03-24 11:25:10 +00:00
gnu Support NFS cookies in VOP_READDIR, allowing ext2fs filesystems to be 1997-04-05 12:23:44 +00:00
i386 The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
isa Prevent wedging of the stat clock because of missed interrupts. 1997-04-06 13:25:48 +00:00
isofs/cd9660 Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include 1997-03-24 11:25:10 +00:00
kern The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
libkern Eliminate some function calls when locale not used 1997-04-04 19:08:19 +00:00
miscfs Fix the gdb executable modify problem. Thanks to the detective work 1997-04-06 02:29:45 +00:00
modules Make MOD_* macros almost consistent: 1997-04-06 11:14:13 +00:00
msdosfs Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined. 1997-03-23 03:37:54 +00:00
net Don't include <sys/ioctl.h> in the kernel. Stage 6: include 1997-03-24 12:12:36 +00:00
netatalk Don't include <sys/ioctl.h> in the kernel. Stage 2: include 1997-03-24 11:33:46 +00:00
netinet Make MOD_* macros almost consistent: 1997-04-06 11:14:13 +00:00
netipx Change IPX to use the pr_usrreqs structure. 1997-04-05 20:05:11 +00:00
netkey This is the `netkey' kernel key-management service (the PF_KEY analogue 1996-06-14 17:22:18 +00:00
netns Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
nfs Fix various bugs in the locking protocol, allowing proper shared locks 1997-04-04 17:49:35 +00:00
nfsclient Fix various bugs in the locking protocol, allowing proper shared locks 1997-04-04 17:49:35 +00:00
nfsserver Fix various bugs in the locking protocol, allowing proper shared locks 1997-04-04 17:49:35 +00:00
pc98 Synchronize with sys/i386/i386/trap.c revision 1.89. 1997-04-06 11:49:46 +00:00
pccard Make MOD_* macros almost consistent: 1997-04-06 11:14:13 +00:00
pci Recognize ZNYX 314 cards that have a MAC address with the low bit set. 1997-04-05 07:59:41 +00:00
powerpc/include Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
rpc Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
scsi Implement dkstats for worm devices so they show up in iostat et al. 1997-04-04 22:12:55 +00:00
sys The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
tools Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ufs Removed nested include of <ufs/ufs/dir.h>. Use the pre-Lite2 hack of 1997-04-01 08:02:00 +00:00
vm The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
Makefile Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00