summaryrefslogtreecommitdiffstats
path: root/sys/libkern/mcount.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libkern/mcount.c')
-rw-r--r--sys/libkern/mcount.c6
1 files changed, 5 insertions, 1 deletions
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