[BACK]Return to psl.h CVS log [TXT][DIR] Up to [local] / sys / arch / powerpc / include

Annotation of sys/arch/powerpc/include/psl.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: psl.h,v 1.5 2001/11/13 14:31:52 drahn 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        _POWERPC_PSL_H_
                     35: #define        _POWERPC_PSL_H_
                     36:
                     37: /*
                     38:  * Flags in MSR:
                     39:  */
                     40: #define PSL_VEC                0x02000000      /* AltiVec vector unit available */
                     41: #define        PSL_POW         0x00040000
                     42: #define        PSL_ILE         0x00010000
                     43: #define        PSL_EE          0x00008000
                     44: #define        PSL_PR          0x00004000
                     45: #define        PSL_FP          0x00002000
                     46: #define        PSL_ME          0x00001000
                     47: #define        PSL_FE0         0x00000800
                     48: #define        PSL_SE          0x00000400
                     49: #define        PSL_BE          0x00000200
                     50: #define        PSL_FE1         0x00000100
                     51: #define        PSL_IP          0x00000040
                     52: #define        PSL_IR          0x00000020
                     53: #define        PSL_DR          0x00000010
                     54: #define        PSL_RI          0x00000002
                     55: #define        PSL_LE          0x00000001
                     56:
                     57: /*
                     58:  * Floating-point exception modes:
                     59:  */
                     60: #define        PSL_FE_DIS      0
                     61: #define        PSL_FE_NONREC   PSL_FE1
                     62: #define        PSL_FE_REC      PSL_FE0
                     63: #define        PSL_FE_PREC     (PSL_FE0 | PSL_FE1)
                     64: #define        PSL_FE_DFLT     PSL_FE_DIS
                     65:
                     66: /*
                     67:  * Note that PSL_POW and PSL_ILE are not in the saved copy of the MSR
                     68:  */
                     69: #define        PSL_MBO         0
                     70: #define        PSL_MBZ         0
                     71:
                     72: #define        PSL_USERSET     (PSL_EE | PSL_PR | PSL_ME | PSL_IR | PSL_DR | PSL_RI)
                     73:
                     74: #define        PSL_USERSTATIC  (PSL_USERSET | PSL_IP | 0x87c0008c)
                     75:
                     76: #include <machine/intr.h>
                     77:
                     78: #endif /* _POWERPC_PSL_H_ */

CVSweb