diff options
Diffstat (limited to 'sys/libkern/mcount.c')
-rw-r--r-- | sys/libkern/mcount.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/libkern/mcount.c b/sys/libkern/mcount.c index 726ad5a..30cda2d 100644 --- a/sys/libkern/mcount.c +++ b/sys/libkern/mcount.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id: mcount.c,v 1.6 1995/12/30 07:24:13 bde Exp $"; + "$Id: mcount.c,v 1.7 1996/05/02 14:20:33 phk Exp $"; #endif #include <sys/param.h> @@ -79,8 +79,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */ register struct gmonparam *p; register long toindex; #ifdef KERNEL - register int s; /* XXX */ - u_long save_eflags; /* XXX */ + MCOUNT_DECL(s) #endif p = &_gmonparam; @@ -93,7 +92,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */ return; #endif #ifdef KERNEL - MCOUNT_ENTER; + MCOUNT_ENTER(s); #else p->state = GMON_PROF_BUSY; #endif @@ -261,7 +260,7 @@ skip_guprof_stuff: } done: #ifdef KERNEL - MCOUNT_EXIT; + MCOUNT_EXIT(s); #else p->state = GMON_PROF_ON; #endif @@ -269,7 +268,7 @@ done: overflow: p->state = GMON_PROF_ERROR; #ifdef KERNEL - MCOUNT_EXIT; + MCOUNT_EXIT(s); #endif return; } |