summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2009-01-17 23:44:47 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2009-01-17 23:44:47 +0000
commit192d0dca46e0e909f463e26cd6e473d578cc064d (patch)
tree9e17e2b6e949984975e917760cfae7147d0c31cf /sys/arch/amd64
parentbd5c137a17928fbc850340bcc7a9f650136d6dba (diff)
gdt_compact() was removed years ago, so kill the code and comments
that worked around its presence ok'ed by miod@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/gdt.c7
-rw-r--r--sys/arch/amd64/amd64/vm_machdep.c11
2 files changed, 2 insertions, 16 deletions
diff --git a/sys/arch/amd64/amd64/gdt.c b/sys/arch/amd64/amd64/gdt.c
index 0f178eede25..1f36bcfdb4b 100644
--- a/sys/arch/amd64/amd64/gdt.c
+++ b/sys/arch/amd64/amd64/gdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdt.c,v 1.12 2008/07/25 15:01:33 art Exp $ */
+/* $OpenBSD: gdt.c,v 1.13 2009/01/17 23:44:46 guenther Exp $ */
/* $NetBSD: gdt.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */
/*-
@@ -65,11 +65,6 @@ void gdt_put_slot(int);
/*
* Lock and unlock the GDT, to avoid races in case gdt_{ge,pu}t_slot() sleep
* waiting for memory.
- *
- * Note that the locking done here is not sufficient for multiprocessor
- * systems. A freshly allocated slot will still be of type SDT_SYSNULL for
- * some time after the GDT is unlocked, so gdt_compact() could attempt to
- * reclaim it.
*/
static __inline void
gdt_lock(void)
diff --git a/sys/arch/amd64/amd64/vm_machdep.c b/sys/arch/amd64/amd64/vm_machdep.c
index 178a5c49d05..3db4a1495d1 100644
--- a/sys/arch/amd64/amd64/vm_machdep.c
+++ b/sys/arch/amd64/amd64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.12 2007/10/13 07:18:32 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.13 2009/01/17 23:44:46 guenther Exp $ */
/* $NetBSD: vm_machdep.c,v 1.1 2003/04/26 18:39:33 fvdl Exp $ */
/*-
@@ -107,15 +107,6 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, size_t stacksize,
*pcb = p1->p_addr->u_pcb;
/*
- * Preset these so that gdt_compact() doesn't get confused if called
- * during the allocations below.
- *
- * Note: pcb_ldt_sel is handled in the pmap_activate() call when
- * we run the new process.
- */
- p2->p_md.md_tss_sel = GSEL(GNULL_SEL, SEL_KPL);
-
- /*
* Activate the address space. Note this will refresh pcb_ldt_sel.
*/
pmap_activate(p2);