diff --git a/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_thread.c b/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_thread.c index 6129d8b32d85..ec850d286aa0 100644 --- a/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_thread.c +++ b/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_thread.c @@ -1,4 +1,4 @@ -/* $NetBSD: mach_fasttraps_thread.c,v 1.6 2003/02/02 19:06:31 manu Exp $ */ +/* $NetBSD: mach_fasttraps_thread.c,v 1.7 2004/07/03 09:44:04 manu Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mach_fasttraps_thread.c,v 1.6 2003/02/02 19:06:31 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mach_fasttraps_thread.c,v 1.7 2004/07/03 09:44:04 manu Exp $"); #include #include @@ -58,11 +58,16 @@ mach_sys_cthread_set_self(l, v, retval) void *v; register_t *retval; { + struct mach_emuldata *med; struct mach_sys_cthread_set_self_args /* { syscallarg(mach_cproc_t) p; } */ *uap = v; l->l_private = (void *)SCARG(uap, p); + + med = l->l_proc->p_emuldata; + med->med_dirty_thid = 0; + return 0; }