1 /* $OpenBSD: psl.h,v 1.3 1997/10/13 10:53:48 pefo Exp $ */ 2 /* $NetBSD: psl.h,v 1.1 1996/09/30 16:34:32 ws Exp $ */ 3 4 /* 5 * Copyright (C) 1995, 1996 Wolfgang Solfrank. 6 * Copyright (C) 1995, 1996 TooLs GmbH. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions 11 * are met: 12 * 1. Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 2. Redistributions in binary form must reproduce the above copyright 15 * notice, this list of conditions and the following disclaimer in the 16 * documentation and/or other materials provided with the distribution. 17 * 3. All advertising materials mentioning features or use of this software 18 * must display the following acknowledgement: 19 * This product includes software developed by TooLs GmbH. 20 * 4. The name of TooLs GmbH may not be used to endorse or promote products 21 * derived from this software without specific prior written permission. 22 * 23 * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 24 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 25 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 26 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 28 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 29 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 30 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 31 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 32 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 */ 34 #ifndef _MACHINE_PSL_H_ 35 #define _MACHINE_PSL_H_ 36 37 /* 38 * Flags in MSR: 39 */ 40 #define PSL_POW 0x00040000 41 #define PSL_ILE 0x00010000 42 #define PSL_EE 0x00008000 43 #define PSL_PR 0x00004000 44 #define PSL_FP 0x00002000 45 #define PSL_ME 0x00001000 46 #define PSL_FE0 0x00000800 47 #define PSL_SE 0x00000400 48 #define PSL_BE 0x00000200 49 #define PSL_FE1 0x00000100 50 #define PSL_IP 0x00000040 51 #define PSL_IR 0x00000020 52 #define PSL_DR 0x00000010 53 #define PSL_RI 0x00000002 54 #define PSL_LE 0x00000001 55 56 /* 57 * Floating-point exception modes: 58 */ 59 #define PSL_FE_DIS 0 60 #define PSL_FE_NONREC PSL_FE1 61 #define PSL_FE_REC PSL_FE0 62 #define PSL_FE_PREC (PSL_FE0 | PSL_FE1) 63 #define PSL_FE_DFLT PSL_FE_DIS 64 65 /* 66 * Note that PSL_POW and PSL_ILE are not in the saved copy of the MSR 67 */ 68 #define PSL_MBO 0 69 #define PSL_MBZ 0 70 71 #define PSL_USERSET (PSL_EE | PSL_PR | PSL_ME | PSL_IR | PSL_DR | PSL_RI) 72 73 #define PSL_USERSTATIC (PSL_USERSET | PSL_IP | 0x87c0008c) 74 75 #include <machine/intr.h> 76 77 #endif /* _MACHINE_PSL_H_ */ 78