summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/vm_machdep.c
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>1999-06-01 18:20:36 +0000
committerjlemon <jlemon@FreeBSD.org>1999-06-01 18:20:36 +0000
commitb5d4171ff60677d883a8f4fdf912b23d5de9a433 (patch)
tree37d000a80ae9f6ab9ca36152f3fd48600aa82ae6 /sys/amd64/amd64/vm_machdep.c
parentd4d2c873635d9e513e6e5720150fd4e44067d68f (diff)
downloadFreeBSD-src-b5d4171ff60677d883a8f4fdf912b23d5de9a433.zip
FreeBSD-src-b5d4171ff60677d883a8f4fdf912b23d5de9a433.tar.gz
Unifdef VM86.
Reviewed by: silence on on -current
Diffstat (limited to 'sys/amd64/amd64/vm_machdep.c')
-rw-r--r--sys/amd64/amd64/vm_machdep.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c
index 48a248f..0451ccb 100644
--- a/sys/amd64/amd64/vm_machdep.c
+++ b/sys/amd64/amd64/vm_machdep.c
@@ -38,12 +38,11 @@
*
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
- * $Id: vm_machdep.c,v 1.120 1999/02/19 14:25:33 luoqi Exp $
+ * $Id: vm_machdep.c,v 1.121 1999/04/19 14:14:13 peter Exp $
*/
#include "npx.h"
#include "opt_user_ldt.h"
-#include "opt_vm86.h"
#ifdef PC98
#include "opt_pc98.h"
#endif
@@ -64,10 +63,8 @@
#ifdef SMP
#include <machine/smp.h>
#endif
-#ifdef VM86
#include <machine/pcb_ext.h>
#include <machine/vm86.h>
-#endif
#include <vm/vm.h>
#include <vm/vm_param.h>
@@ -133,11 +130,7 @@ cpu_fork(p1, p2)
* syscall. This copies the user mode register values.
*/
p2->p_md.md_regs = (struct trapframe *)
-#ifdef VM86
((int)p2->p_addr + UPAGES * PAGE_SIZE - 16) - 1;
-#else
- ((int)p2->p_addr + UPAGES * PAGE_SIZE) - 1;
-#endif /* VM86 */
*p2->p_md.md_regs = *p1->p_md.md_regs;
/*
@@ -162,12 +155,10 @@ cpu_fork(p1, p2)
#ifdef SMP
pcb2->pcb_mpnest = 1;
#endif
-#ifdef VM86
/*
* XXX don't copy the i/o pages. this should probably be fixed.
*/
pcb2->pcb_ext = 0;
-#endif
#ifdef USER_LDT
/* Copy the LDT, if necessary. */
@@ -216,14 +207,11 @@ void
cpu_exit(p)
register struct proc *p;
{
-#if defined(USER_LDT) || defined(VM86)
struct pcb *pcb = &p->p_addr->u_pcb;
-#endif
#if NNPX > 0
npxexit(p);
#endif /* NNPX */
-#ifdef VM86
if (pcb->pcb_ext != 0) {
/*
* XXX do we need to move the TSS off the allocated pages
@@ -233,7 +221,6 @@ cpu_exit(p)
ctob(IOPAGES + 1));
pcb->pcb_ext = 0;
}
-#endif
#ifdef USER_LDT
if (pcb->pcb_ldt != 0) {
if (pcb == curpcb) {
OpenPOWER on IntegriCloud