freebsd-src/sys/i386
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
..
apm Fix embarrasing typo that survived because I applied the wrong patch- 1997-03-30 09:08:00 +00:00
bios Fix embarrasing typo that survived because I applied the wrong patch- 1997-03-30 09:08:00 +00:00
boot Don't attempt to read past EOF. 1997-03-15 16:49:51 +00:00
conf Documented new serial console flags. 1997-04-07 01:26:34 +00:00
eisa Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include 1997-03-24 11:25:10 +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
ibcs2 Fixes to ibcs2_getdents, including using struct dirent instead of 1997-04-06 14:10:50 +00:00
include 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
linux Remove dependancy on UFS' DIRBLKSIZ definition. 1997-04-06 10:10:50 +00:00
pci improve pcibus_check: Only assume PCI if at least one PCI to anything bridge 1997-03-05 20:52:00 +00:00
scsi Fix a bug in the selection timeout handler that was introduced when the 1997-04-05 21:41:13 +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