summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/libkern/Makefile4
-rw-r--r--sys/libkern/mcount.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/libkern/Makefile b/sys/libkern/Makefile
index 2d6bafb..c910523 100644
--- a/sys/libkern/Makefile
+++ b/sys/libkern/Makefile
@@ -1,8 +1,8 @@
# @(#)Makefile 7.9 (Berkeley) 6/1/93
-# $Id$
+# $Id: Makefile,v 1.2 1994/08/02 07:43:40 davidg Exp $
LIB= kern
-CFLAGS+= -I${.CURDIR} -I${.CURDIR}/..
+CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. -DKERNEL
SRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c bcmp.c cmpdi2.c divdi3.c \
ffs.c iordi3.c locc.c lshldi3.c lshrdi3.c mcount.c moddi3.c \
muldi3.c negdi2.c notdi2.c qdivrem.c random.c rindex.c scanc.c \
diff --git a/sys/libkern/mcount.c b/sys/libkern/mcount.c
index fd8e6a3..f9942e8 100644
--- a/sys/libkern/mcount.c
+++ b/sys/libkern/mcount.c
@@ -30,11 +30,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: mcount.c,v 1.2 1994/08/02 07:44:09 davidg Exp $
*/
#include <sys/param.h>
#include <sys/gmon.h>
+#ifdef KERNEL
+#include <i386/include/cpufunc.h>
+#endif
/*
* mcount is called on entry to each function compiled with the profiling
@@ -60,6 +63,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
register long toindex;
#ifdef KERNEL
register int s;
+ u_long save_eflags;
#endif
p = &_gmonparam;
OpenPOWER on IntegriCloud