Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include Protect userland from the inlines and...
details: https://anonhg.NetBSD.org/src/rev/c82225317c04
branches: trunk
changeset: 512825:c82225317c04
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Jul 17 20:54:58 2001 +0000
description:
Protect userland from the inlines and kernel variable decls.
diffstat:
sys/arch/alpha/include/alpha_cpu.h | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (63 lines):
diff -r c2841078e9a4 -r c82225317c04 sys/arch/alpha/include/alpha_cpu.h
--- a/sys/arch/alpha/include/alpha_cpu.h Tue Jul 17 19:12:02 2001 +0000
+++ b/sys/arch/alpha/include/alpha_cpu.h Tue Jul 17 20:54:58 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alpha_cpu.h,v 1.41 2000/06/08 03:10:06 thorpej Exp $ */
+/* $NetBSD: alpha_cpu.h,v 1.42 2001/07/17 20:54:58 thorpej Exp $ */
/*
* Copyright (c) 1996 Carnegie-Mellon University.
@@ -265,6 +265,8 @@
#define ALPHA_IF_CODE_FEN 3
#define ALPHA_IF_CODE_OPDEC 4
+#ifdef _KERNEL
+
/*
* Translation Buffer Invalidation definitions [OSF/1 PALcode Specific]
*/
@@ -275,6 +277,8 @@
#define ALPHA_TBISD(va) alpha_pal_tbi(2, (va)) /* DTB entry for va */
#define ALPHA_TBIS(va) alpha_pal_tbi(3, (va)) /* all for va */
+#endif /* _KERNEL */
+
/*
* Bits used in the amask instruction [EV56 and later]
*/
@@ -300,6 +304,8 @@
#define ALPHA_IMPLVER_EV5 1 /* EV5/EV56/PCA56 */
#define ALPHA_IMPLVER_EV6 2 /* EV6 */
+#ifdef _KERNEL
+
/*
* Maximum processor ID we allow from `whami', and related constants.
*
@@ -323,6 +329,10 @@
unsigned long alpha_amask(unsigned long);
unsigned long alpha_implver(void);
+#endif /* _KERNEL */
+
+/* XXX Expose the insn wrappers to userspace, for now. */
+
static __inline unsigned long
alpha_rpcc(void)
{
@@ -335,6 +345,8 @@
#define alpha_mb() __asm __volatile("mb" : : : "memory")
#define alpha_wmb() __asm __volatile("mb" : : : "memory") /* XXX */
+#if defined(_KERNEL) || defined(_STANDALONE)
+
/*
* Stubs for OSF/1 PALcode operations.
*/
@@ -525,4 +537,6 @@
: "$1", "$22", "$23", "$24", "$25");
}
+#endif /* _KERNEL */
+
#endif /* __ALPHA_ALPHA_CPU_H__ */
Home |
Main Index |
Thread Index |
Old Index