From 7977bd843dd14b7e08d632f69abc27ada6991354 Mon Sep 17 00:00:00 2001 From: msaitoh Date: Thu, 16 Sep 1999 14:42:27 +0000 Subject: [PATCH] enclose tlbflush(), disable_intr() and enable_intr() with #ifder _KERNEL --- sys/arch/sh3/include/cpufunc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/sh3/include/cpufunc.h b/sys/arch/sh3/include/cpufunc.h index 620f354577db..9944eb14af4a 100644 --- a/sys/arch/sh3/include/cpufunc.h +++ b/sys/arch/sh3/include/cpufunc.h @@ -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 #include +#ifdef _KERNEL + static __inline void tlbflush(void) { @@ -97,4 +99,6 @@ enable_intr(void) __asm __volatile("mov.l @r15+, r0"); } +#endif + #endif /* !_SH3_CPUFUNC_H_ */