diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-11 17:59:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-11 17:59:09 +0000 |
commit | f217953a217b97d0ebf54cffbe7d6e2472549fc7 (patch) | |
tree | c054f8178322c39cfa97df2527c2b43292a166f1 /sys/arch/i386/include/pcb.h | |
parent | 832d7762e107a2d950f138205d9a6980bfba4353 (diff) |
from netbsd; VM86 support, by John Kohl, touched up a bit by charles
Diffstat (limited to 'sys/arch/i386/include/pcb.h')
-rw-r--r-- | sys/arch/i386/include/pcb.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/i386/include/pcb.h b/sys/arch/i386/include/pcb.h index 1cb5ad46318..3cff2b28c2d 100644 --- a/sys/arch/i386/include/pcb.h +++ b/sys/arch/i386/include/pcb.h @@ -1,4 +1,4 @@ -/* $NetBSD: pcb.h,v 1.20 1995/10/11 04:20:16 mycroft Exp $ */ +/* $NetBSD: pcb.h,v 1.21 1996/01/08 13:51:42 mycroft Exp $ */ /*- * Copyright (c) 1995 Charles M. Hannum. All rights reserved. @@ -53,6 +53,8 @@ #include <machine/npx.h> #include <machine/sysarch.h> +#define NIOPORTS 1024 /* # of ports we allow to be mapped */ + struct pcb { struct i386tss pcb_tss; #define pcb_cr3 pcb_tss.tss_cr3 @@ -73,7 +75,10 @@ struct pcb { int pcb_flags; #define PCB_USER_LDT 0x01 /* has user-set LDT */ caddr_t pcb_onfault; /* copyin/out fault recovery */ - u_long pcb_iomap[1024/32]; /* I/O bitmap */ + int vm86_eflags; /* virtual eflags for vm86 mode */ + int vm86_flagmask; /* flag mask for vm86 mode */ + void *vm86_userp; /* XXX performance hack */ + u_long pcb_iomap[NIOPORTS/32]; /* I/O bitmap */ }; /* |