* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
* @(#)pcb.h 5.7 (Berkeley) %G%
* Intel 386 process control block
#define pcb_ksp pcbtss.tss_esp0
#define pcb_ptd pcbtss.tss_cr3
#define pcb_pc pcbtss.tss_eip
#define pcb_psl pcbtss.tss_eflags
#define pcb_usp pcbtss.tss_esp
#define pcb_fp pcbtss.tss_ebp
* Software pcb (extension)
#define FP_WASUSED 0x1 /* floating point has been used in this proc */
#define FP_NEEDSSAVE 0x2 /* needs save on next context switch */
#define FP_NEEDSRESTORE 0x4 /* need restore on next DNA fault */
#define FP_USESEMC 0x8 /* process uses EMC memory-mapped mode */
#define EX_TRAPSTK 0x10 /* process entered with a trap stack frame */
struct save87 pcb_savefpu
;
struct emcsts pcb_saveemc
;
int pcb_szpt
; /* number of pages of user page table */
int pcb_iml
; /* interrupt mask level */