aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/profile.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-07-10 09:26:41 +0000
committerBruce Evans <bde@FreeBSD.org>1998-07-10 09:26:41 +0000
commit930a6423728ce973450353b55d92484f71c3e604 (patch)
tree602f9969e2a93b8e97219cdea254cd46c217ed4f /sys/amd64/include/profile.h
parent1009171eb2775c8a714c31e3b5e788868fdd7985 (diff)
downloadsrc-930a6423728ce973450353b55d92484f71c3e604.tar.gz
src-930a6423728ce973450353b55d92484f71c3e604.zip
Oops, fptrint_t still needs to be declared in <machine/profile.h> in the
!KERNEL case. The kludge to get it declared in libc/gmon/mcount.c wasn't sufficient because fptrint_t is used in <sys/gmon.h>.
Notes
Notes: svn path=/head/; revision=37542
Diffstat (limited to 'sys/amd64/include/profile.h')
-rw-r--r--sys/amd64/include/profile.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h
index e3da51ad8f1b..23595b2c537b 100644
--- a/sys/amd64/include/profile.h
+++ b/sys/amd64/include/profile.h
@@ -31,13 +31,14 @@
* SUCH DAMAGE.
*
* @(#)profile.h 8.1 (Berkeley) 6/11/93
- * $Id: profile.h,v 1.14 1998/02/03 20:32:38 bde Exp $
+ * $Id: profile.h,v 1.15 1998/07/10 02:27:15 bde Exp $
*/
#ifndef _MACHINE_PROFILE_H_
#define _MACHINE_PROFILE_H_
#ifdef KERNEL
+
/*
* Config generates something to tell the compiler to align functions on 16
* byte boundaries. A strict alignment is good for keeping the tables small.
@@ -101,6 +102,10 @@ mcount() \
frompc = ((fptrint_t *)frompc)[1]; \
_mcount(frompc, selfpc); \
}
+
+/* An unsigned integral type that can hold function pointers. */
+typedef u_int32_t fptrint_t;
+
#endif /* KERNEL */
/*