aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/profile.h
diff options
context:
space:
mode:
authorPaul Richards <paul@FreeBSD.org>1994-09-15 16:27:14 +0000
committerPaul Richards <paul@FreeBSD.org>1994-09-15 16:27:14 +0000
commit8db02de8840daed28e57bd8f16c91d0b1659341e (patch)
tree655b6ec5be1d561f2c60cf6130902b9183b65b04 /sys/amd64/include/profile.h
parent691071ff1cef70cfd4688b04c9289728c6ba9154 (diff)
Notes
Diffstat (limited to 'sys/amd64/include/profile.h')
-rw-r--r--sys/amd64/include/profile.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h
index 03133aa51332..9fe27ec5eda8 100644
--- a/sys/amd64/include/profile.h
+++ b/sys/amd64/include/profile.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)profile.h 8.1 (Berkeley) 6/11/93
- * $Id: profile.h,v 1.2 1994/08/02 07:38:56 davidg Exp $
+ * $Id: profile.h,v 1.3 1994/08/21 04:55:29 paul Exp $
*/
#ifndef _I386_MACHINE_PROFILE_H_
@@ -59,4 +59,7 @@ extern void mcount() asm("mcount"); void mcount() { \
_mcount(frompcindex, selfpc); \
}
+#define MCOUNT_ENTER save_eflags = read_eflags(); disable_intr()
+#define MCOUNT_EXIT write_eflags(save_eflags)
+
#endif