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

This commit is contained in:
msaitoh 1999-09-16 14:42:27 +00:00
parent 15a7aff6f8
commit 7977bd843d
1 changed files with 5 additions and 1 deletions

View File

@ -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 @@ enable_intr(void)
__asm __volatile("mov.l @r15+, r0");
}
#endif
#endif /* !_SH3_CPUFUNC_H_ */