freebsd-src/sys/i386/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
..
autoconf.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
cons.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
cons.h Fixed gratuitous ANSIisms. 1997-04-01 16:13:31 +00:00
db_disasm.c Removed a wrong comment of mine. 1997-04-01 16:22:31 +00:00
db_interface.c Added a setjmp() and a longjmp() so that an unexpected trap inside 1997-03-28 12:56:07 +00:00
db_trace.c Add missing #include <machine/segments.h> for ISPL and SEL_UPL macros 1997-03-01 05:44:09 +00:00
exception.s The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
genassym.c The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
i386-gdbstub.c Implement the `detach' command for remote GDB. It gets you back at DDB. 1997-03-30 16:03:00 +00:00
identcpu.c Improved CPU identification and initialization routines. This 1997-03-22 18:54:54 +00:00
in_cksum.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
initcpu.c Fix typo. 1997-03-24 07:23:05 +00:00
locore.s The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
machdep.c The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
math_emu.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
math_emulate.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
mem.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
microtime.s Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
perfmon.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
pmap.c The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
procfs_machdep.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
support.s Made FPU stuff conditional on npx as well as I586_CPU. 1997-03-05 16:30:55 +00:00
swapgeneric.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
swtch.s The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
symbols.raw The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
sys_machdep.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
trap.c The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00
tsc.c Prevent wedging of the stat clock because of missed interrupts. 1997-04-06 13:25:48 +00:00
userconfig.c Various stylistic improvements regarding num_eisa_slots & co.: 1997-03-13 18:04:05 +00:00
vm_machdep.c The biggie: Get rid of the UPAGES from the top of the per-process address 1997-04-07 07:16:06 +00:00