Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/include enclose tlbflush(), disable_intr() and ...



details:   https://anonhg.NetBSD.org/src/rev/745070c0a904
branches:  trunk
changeset: 476439:745070c0a904
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Sep 16 14:42:27 1999 +0000

description:
enclose tlbflush(), disable_intr() and enable_intr() with #ifder _KERNEL

diffstat:

 sys/arch/sh3/include/cpufunc.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 80da5c4aa1ff -r 745070c0a904 sys/arch/sh3/include/cpufunc.h
--- a/sys/arch/sh3/include/cpufunc.h    Thu Sep 16 14:40:21 1999 +0000
+++ b/sys/arch/sh3/include/cpufunc.h    Thu Sep 16 14:42:27 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.h,v 1.1 1999/09/13 10:31:16 itojun Exp $       */
+/*     $NetBSD: cpufunc.h,v 1.2 1999/09/16 14:42:27 msaitoh Exp $      */
 
 /*
  * Copyright (c) 1993 Charles Hannum.
@@ -47,6 +47,8 @@
 #include <sys/types.h>
 #include <sh3/mmureg.h>
 
+#ifdef _KERNEL
+
 static __inline void
 tlbflush(void)
 {
@@ -97,4 +99,6 @@
        __asm __volatile("mov.l @r15+, r0");
 }
 
+#endif
+
 #endif /* !_SH3_CPUFUNC_H_ */



Home | Main Index | Thread Index | Old Index