aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorPaul Richards <paul@FreeBSD.org>1994-09-15 16:00:41 +0000
committerPaul Richards <paul@FreeBSD.org>1994-09-15 16:00:41 +0000
commit691071ff1cef70cfd4688b04c9289728c6ba9154 (patch)
treeea0e9a3d89f041ed5437507e1dcd7d2bd87447c1 /lib/libc
parent03b6d659e548ca001229bdbaedcc51f90d292d22 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gmon/mcount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c
index 523217d1d2d94..13e4df99e8a60 100644
--- a/lib/libc/gmon/mcount.c
+++ b/lib/libc/gmon/mcount.c
@@ -37,6 +37,9 @@ static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
#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
@@ -62,6 +65,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;