Deleted Added
full compact
psl.h (265972) psl.h (271171)
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: psl.h,v 1.5 2000/11/19 19:52:37 matt Exp $
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: psl.h,v 1.5 2000/11/19 19:52:37 matt Exp $
32 * $FreeBSD: stable/10/sys/powerpc/include/psl.h 265972 2014-05-13 18:24:02Z ian $
32 * $FreeBSD: stable/10/sys/powerpc/include/psl.h 271171 2014-09-05 15:13:41Z jhibbits $
33 */
34
35#ifndef _MACHINE_PSL_H_
36#define _MACHINE_PSL_H_
37
38/*
39 * Machine State Register (MSR) - All cores
40 */

--- 40 unchanged lines hidden (view full) ---

81#define PSL_FE_REC PSL_FE0 /* imprecise recoverable */
82#define PSL_FE_PREC (PSL_FE0 | PSL_FE1) /* precise */
83#define PSL_FE_DFLT PSL_FE_DIS /* default == none */
84
85#if defined(BOOKE_E500)
86/* Initial kernel MSR, use IS=1 ad DS=1. */
87#define PSL_KERNSET_INIT (PSL_IS | PSL_DS)
88#define PSL_KERNSET (PSL_CE | PSL_ME | PSL_EE)
33 */
34
35#ifndef _MACHINE_PSL_H_
36#define _MACHINE_PSL_H_
37
38/*
39 * Machine State Register (MSR) - All cores
40 */

--- 40 unchanged lines hidden (view full) ---

81#define PSL_FE_REC PSL_FE0 /* imprecise recoverable */
82#define PSL_FE_PREC (PSL_FE0 | PSL_FE1) /* precise */
83#define PSL_FE_DFLT PSL_FE_DIS /* default == none */
84
85#if defined(BOOKE_E500)
86/* Initial kernel MSR, use IS=1 ad DS=1. */
87#define PSL_KERNSET_INIT (PSL_IS | PSL_DS)
88#define PSL_KERNSET (PSL_CE | PSL_ME | PSL_EE)
89#define PSL_SRR1_MASK 0x00000000UL /* No mask on Book-E */
89#elif defined(BOOKE_PPC4XX)
90#define PSL_KERNSET (PSL_CE | PSL_ME | PSL_EE | PSL_FP)
90#elif defined(BOOKE_PPC4XX)
91#define PSL_KERNSET (PSL_CE | PSL_ME | PSL_EE | PSL_FP)
92#define PSL_SRR1_MASK 0x00000000UL /* No mask on Book-E */
91#elif defined(AIM)
92#ifdef __powerpc64__
93#define PSL_KERNSET (PSL_SF | PSL_EE | PSL_ME | PSL_IR | PSL_DR | PSL_RI)
94#else
95#define PSL_KERNSET (PSL_EE | PSL_ME | PSL_IR | PSL_DR | PSL_RI)
96#endif
93#elif defined(AIM)
94#ifdef __powerpc64__
95#define PSL_KERNSET (PSL_SF | PSL_EE | PSL_ME | PSL_IR | PSL_DR | PSL_RI)
96#else
97#define PSL_KERNSET (PSL_EE | PSL_ME | PSL_IR | PSL_DR | PSL_RI)
98#endif
99#define PSL_SRR1_MASK 0x783f0000UL /* Bits 1-4, 10-15 (ppc32), 33-36, 42-47 (ppc64) */
97#endif
98
99#define PSL_USERSET (PSL_KERNSET | PSL_PR)
100#endif
101
102#define PSL_USERSET (PSL_KERNSET | PSL_PR)
100#define PSL_USERSTATIC ~(PSL_VEC | PSL_FP | PSL_FE0 | PSL_FE1)
103#define PSL_USERSTATIC (~(PSL_VEC | PSL_FP | PSL_FE0 | PSL_FE1) & ~PSL_SRR1_MASK)
101
102#endif /* _MACHINE_PSL_H_ */
104
105#endif /* _MACHINE_PSL_H_ */