Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/include Bring some fixes and minor difference...
details: https://anonhg.NetBSD.org/src/rev/40fe46bd4662
branches: trunk
changeset: 767339:40fe46bd4662
user: nakayama <nakayama%NetBSD.org@localhost>
date: Sat Jul 16 11:15:52 2011 +0000
description:
Bring some fixes and minor differences from sparc64 version.
diffstat:
sys/arch/sparc/include/psl.h | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (48 lines):
diff -r 18f5ee65cf5c -r 40fe46bd4662 sys/arch/sparc/include/psl.h
--- a/sys/arch/sparc/include/psl.h Fri Jul 15 23:40:56 2011 +0000
+++ b/sys/arch/sparc/include/psl.h Sat Jul 16 11:15:52 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psl.h,v 1.46 2011/07/15 19:30:08 riz Exp $ */
+/* $NetBSD: psl.h,v 1.47 2011/07/16 11:15:52 nakayama Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -142,6 +142,7 @@
#define PSTATE_USER (PSTATE_MM_TSO|PSTATE_AM|PSTATE_IE)
#endif
+
/*
* SPARC V9 TSTATE register
*
@@ -149,7 +150,7 @@
* +-----+-----+-----+--------+---+-----+
* | CCR | ASI | - | PSTATE | - | CWP |
* +-----+-----+-----+--------+---+-----+
- * */
+ */
#define TSTATE_CWP 0x01f
#define TSTATE_PSTATE 0x6ff00
@@ -159,8 +160,8 @@
#define TSTATE_CCR 0xff00000000LL
#define TSTATE_CCR_SHIFT 32
-#define PSRCC_TO_TSTATE(x) (((int64_t)(x)&PSR_ICC)<<(TSTATE_CCR_SHIFT-19))
-#define TSTATECCR_TO_PSR(x) (((x)&TSTATE_CCR)>>(TSTATE_CCR_SHIFT-19))
+#define PSRCC_TO_TSTATE(x) (((int64_t)(x)&PSR_ICC)<<(TSTATE_CCR_SHIFT-20))
+#define TSTATECCR_TO_PSR(x) (((x)&TSTATE_CCR)>>(TSTATE_CCR_SHIFT-20))
/*
* These are here to simplify life.
@@ -182,8 +183,8 @@
#define TSTATE_BITS "\20\14IG\13MG\12CLE\11TLE\10\7MM\6RED\5PEF\4AM\3PRIV\2IE\1AG"
-#define TSTATE_KERN ((TSTATE_KERN)<<TSTATE_PSTATE_SHIFT)
-#define TSTATE_USER ((TSTATE_USER)<<TSTATE_PSTATE_SHIFT)
+#define TSTATE_KERN ((PSTATE_KERN)<<TSTATE_PSTATE_SHIFT)
+#define TSTATE_USER ((PSTATE_USER)<<TSTATE_PSTATE_SHIFT)
/*
* SPARC V9 VER version register.
*
Home |
Main Index |
Thread Index |
Old Index