summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include/psl.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 03:54:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 03:54:39 +0000
commitf12226068d16673eea9adafe99388f1061d3309f (patch)
tree90cb542d279e793d072ffc6e9f1f1add1f07179e /sys/arch/alpha/include/psl.h
parent470d0389b66fade522060561cc0c6ba36e01e7cb (diff)
update to netbsd
Diffstat (limited to 'sys/arch/alpha/include/psl.h')
-rw-r--r--sys/arch/alpha/include/psl.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/arch/alpha/include/psl.h b/sys/arch/alpha/include/psl.h
index 3b019596c44..e14260c2bf6 100644
--- a/sys/arch/alpha/include/psl.h
+++ b/sys/arch/alpha/include/psl.h
@@ -1,4 +1,4 @@
-/* $NetBSD: psl.h,v 1.3 1995/08/03 00:03:09 cgd Exp $ */
+/* $NetBSD: psl.h,v 1.4 1995/11/23 02:36:33 cgd Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -27,6 +27,9 @@
* rights to redistribute these changes.
*/
+#ifndef __ALPHA_PSL_H__
+#define __ALPHA_PSL_H__
+
/*
* Processor Status register definitions.
*/
@@ -70,16 +73,17 @@
/*
* Cache invalidation/flush routines.
*/
-#if 0
-#define wbflush() alpha_mb() /* Flush all write buffers */
-#else
+
/* Flush all write buffers */
-#define wbflush() __asm __volatile("mb")
-#endif
+static __inline int wbflush() { __asm __volatile("mb"); } /* XXX? wmb */
+
#define IMB() pal_imb() /* Sync instruction cache w/data */
void alpha_mb __P((void)); /* Flush all write buffers */
void pal_imb __P((void)); /* Sync instruction cache */
u_int64_t pal_swpipl __P((u_int64_t)); /* write new IPL, return old */
+u_int64_t profile_swpipl __P((u_int64_t)); /* pal_swpipl w/o profiling */
void pal_tbi __P((u_int64_t, void *)); /* Invalidate TLB entries */
#endif /* _KERNEL */
+
+#endif /* !__ALPHA_PSL_H__ */