Remove PSL_USERCLR, and add a PSL_USERSTATIC. Change the bit descriptions to
more closely match the 386 manual. (Probably the mnemonics should be changed, too.)
This commit is contained in:
parent
c7c817b91a
commit
ecef8fddfa
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: psl.h,v 1.15 1995/01/03 01:19:19 mycroft Exp $ */
|
||||
/* $NetBSD: psl.h,v 1.16 1995/01/15 00:57:50 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -44,29 +44,29 @@
|
||||
/*
|
||||
* 386 processor status longword.
|
||||
*/
|
||||
#define PSL_C 0x00000001 /* carry bit */
|
||||
#define PSL_PF 0x00000004 /* parity bit */
|
||||
#define PSL_AF 0x00000010 /* bcd carry bit */
|
||||
#define PSL_Z 0x00000040 /* zero bit */
|
||||
#define PSL_N 0x00000080 /* negative bit */
|
||||
#define PSL_T 0x00000100 /* trace enable bit */
|
||||
#define PSL_I 0x00000200 /* interrupt enable bit */
|
||||
#define PSL_D 0x00000400 /* string instruction direction bit */
|
||||
#define PSL_V 0x00000800 /* overflow bit */
|
||||
#define PSL_IOPL 0x00003000 /* i/o priviledge level enable */
|
||||
#define PSL_NT 0x00004000 /* nested task bit */
|
||||
#define PSL_RF 0x00010000 /* restart flag bit */
|
||||
#define PSL_VM 0x00020000 /* virtual 8086 mode bit */
|
||||
#define PSL_AC 0x00040000 /* alignment checking */
|
||||
#define PSL_VIF 0x00080000 /* virtual interrupt enable */
|
||||
#define PSL_VIP 0x00100000 /* virtual interrupt pending */
|
||||
#define PSL_ID 0x00200000 /* identification bit */
|
||||
#define PSL_C 0x00000001 /* carry flag */
|
||||
#define PSL_PF 0x00000004 /* parity flag */
|
||||
#define PSL_AF 0x00000010 /* auxiliary carry flag */
|
||||
#define PSL_Z 0x00000040 /* zero flag */
|
||||
#define PSL_N 0x00000080 /* sign flag */
|
||||
#define PSL_T 0x00000100 /* trap flag */
|
||||
#define PSL_I 0x00000200 /* interrupt enable flag */
|
||||
#define PSL_D 0x00000400 /* direction flag */
|
||||
#define PSL_V 0x00000800 /* overflow flag */
|
||||
#define PSL_IOPL 0x00003000 /* i/o privilege level */
|
||||
#define PSL_NT 0x00004000 /* nested task */
|
||||
#define PSL_RF 0x00010000 /* resume flag */
|
||||
#define PSL_VM 0x00020000 /* virtual 8086 mode */
|
||||
#define PSL_AC 0x00040000 /* alignment check flag */
|
||||
#define PSL_VIF 0x00080000 /* virtual interrupt enable flag */
|
||||
#define PSL_VIP 0x00100000 /* virtual interrupt pending flag */
|
||||
#define PSL_ID 0x00200000 /* identification flag */
|
||||
|
||||
#define PSL_MBO 0x00000002 /* must be one bits */
|
||||
#define PSL_MBZ 0xffc08028 /* must be zero bits */
|
||||
|
||||
#define PSL_USERSET (PSL_MBO | PSL_I)
|
||||
#define PSL_USERCLR (PSL_MBZ | PSL_VIP | PSL_VIF | PSL_NT | PSL_VM)
|
||||
#define PSL_USERSTATIC (PSL_MBO | PSL_MBZ | PSL_I | PSL_IOPL | PSL_VM | PSL_VIF | PSL_VIP)
|
||||
|
||||
#ifdef KERNEL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user