summaryrefslogtreecommitdiff
path: root/kern/pc_sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/pc_sample.c')
-rw-r--r--kern/pc_sample.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/pc_sample.c b/kern/pc_sample.c
index c82707b2..57002581 100644
--- a/kern/pc_sample.c
+++ b/kern/pc_sample.c
@@ -31,6 +31,7 @@
#include <mach/std_types.h> /* pointer_t */
#include <mach/pc_sample.h>
#include <machine/trap.h>
+#include <kern/kalloc.h>
#include <kern/host.h>
#include <kern/thread.h>
#include <kern/pc_sample.h>
@@ -56,7 +57,7 @@ void take_pc_sample(
pc = interrupted_pc(t);
cp->seqno++;
sample = &((sampled_pc_t *)cp->buffer)[cp->seqno % MAX_PC_SAMPLES];
- sample->id = (natural_t)t;
+ sample->id = (vm_offset_t)t;
sample->pc = pc;
sample->sampletype = flavor;
}