summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_prof.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-14 05:09:48 +0000
committerbde <bde@FreeBSD.org>1998-07-14 05:09:48 +0000
commit55ddae5a80992ccb5383ea0c6f2f7055694716b7 (patch)
tree7658bd93d378ee99a6ee447cba3e12c7e55ab765 /sys/kern/subr_prof.c
parent95415c676d9622fd2a2dda4dea047790c204c1eb (diff)
downloadFreeBSD-src-55ddae5a80992ccb5383ea0c6f2f7055694716b7.zip
FreeBSD-src-55ddae5a80992ccb5383ea0c6f2f7055694716b7.tar.gz
Changed to the C9x draft spelling of the (unsigned) integral type
suitable for holding object pointers (ptrint_t -> uintptr_t). Added corresponding signed type (intptr_t). Changed/added corresponding non-C9x types for function pointers to match. Don't use nonstandard types to implement these types, and don't comment on them in <machine/types.h>.
Diffstat (limited to 'sys/kern/subr_prof.c')
-rw-r--r--sys/kern/subr_prof.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c
index 80fda30..467b748 100644
--- a/sys/kern/subr_prof.c
+++ b/sys/kern/subr_prof.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)subr_prof.c 8.3 (Berkeley) 9/23/93
- * $Id: subr_prof.c,v 1.25 1998/04/15 17:46:23 bde Exp $
+ * $Id: subr_prof.c,v 1.26 1998/05/01 16:40:20 bde Exp $
*/
#include <sys/param.h>
@@ -87,7 +87,7 @@ kmstartup(dummy)
int mexitcount_overhead;
int nullfunc_loop_overhead;
int nullfunc_loop_profiled_time;
- fptrint_t tmp_addr;
+ uintfptr_t tmp_addr;
#endif
/*
@@ -188,8 +188,8 @@ kmstartup(dummy)
enable_intr();
nullfunc_loop_profiled_time = 0;
- for (tmp_addr = (fptrint_t)nullfunc_loop_profiled;
- tmp_addr < (fptrint_t)nullfunc_loop_profiled_end;
+ for (tmp_addr = (uintfptr_t)nullfunc_loop_profiled;
+ tmp_addr < (uintfptr_t)nullfunc_loop_profiled_end;
tmp_addr += HISTFRACTION * sizeof(HISTCOUNTER))
nullfunc_loop_profiled_time += KCOUNT(p, PC_TO_I(p, tmp_addr));
#define CALIB_DOSCALE(count) (((count) + CALIB_SCALE / 3) / CALIB_SCALE)
OpenPOWER on IntegriCloud