summaryrefslogtreecommitdiff
path: root/mach
diff options
context:
space:
mode:
Diffstat (limited to 'mach')
-rw-r--r--mach/setup-thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mach/setup-thread.c b/mach/setup-thread.c
index 7c2889f8ba..a59012785d 100644
--- a/mach/setup-thread.c
+++ b/mach/setup-thread.c
@@ -74,7 +74,7 @@ __mach_setup_thread (task_t task, thread_t thread, void *pc,
*stack_size = size;
memset (&ts, 0, sizeof (ts));
- ts.PC = (int) pc;
+ MACHINE_THREAD_STATE_SET_PC (&ts, pc);
#ifdef STACK_GROWTH_DOWN
if (stack_base)
*stack_base = stack + __vm_page_size;