summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include/psl.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/include/psl.h')
-rw-r--r--sys/arch/sparc64/include/psl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/psl.h b/sys/arch/sparc64/include/psl.h
index 32017ca8666..864d06d2498 100644
--- a/sys/arch/sparc64/include/psl.h
+++ b/sys/arch/sparc64/include/psl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: psl.h,v 1.17 2005/06/29 06:30:18 deraadt Exp $ */
+/* $OpenBSD: psl.h,v 1.18 2005/06/29 07:11:14 deraadt Exp $ */
/* $NetBSD: psl.h,v 1.20 2001/04/13 23:30:05 thorpej Exp $ */
/*
@@ -142,6 +142,8 @@
#define TSTATE_CCR 0xff00000000LL
#define TSTATE_CCR_SHIFT 32
+/* Leftover SPARC V8 PSTATE stuff */
+#define PSR_ICC 0x00f00000
#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))