diff --git a/sys/arch/amd64/amd64/genassym.cf b/sys/arch/amd64/amd64/genassym.cf index e15db2cbbd15..fd871b2bef52 100644 --- a/sys/arch/amd64/amd64/genassym.cf +++ b/sys/arch/amd64/amd64/genassym.cf @@ -1,4 +1,4 @@ -# $NetBSD: genassym.cf,v 1.7 2007/02/17 22:31:37 pavel Exp $ +# $NetBSD: genassym.cf,v 1.8 2007/02/18 08:08:41 cube Exp $ # # Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -167,7 +167,7 @@ define P_MD_SYSCALL offsetof(struct proc, p_md.md_syscall) define P_MD_FLAGS offsetof(struct proc, p_md.md_flags) define PK_SYSTEM PK_SYSTEM -define P_32 P_32 +define PK_32 PK_32 define M_DATA offsetof(struct mbuf, m_data) define M_LEN offsetof(struct mbuf, m_len) diff --git a/sys/arch/amd64/amd64/vm_machdep.c b/sys/arch/amd64/amd64/vm_machdep.c index 88150c72b894..8ad5c10a9335 100644 --- a/sys/arch/amd64/amd64/vm_machdep.c +++ b/sys/arch/amd64/amd64/vm_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: vm_machdep.c,v 1.17 2007/02/17 22:31:37 pavel Exp $ */ +/* $NetBSD: vm_machdep.c,v 1.18 2007/02/18 08:08:41 cube Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. @@ -80,7 +80,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.17 2007/02/17 22:31:37 pavel Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.18 2007/02/18 08:08:41 cube Exp $"); #include "opt_coredump.h" #include "opt_user_ldt.h" @@ -226,7 +226,7 @@ cpu_setfunc(struct lwp *l, void (*func)(void *), void *arg) sf->sf_r12 = (u_int64_t)func; sf->sf_r13 = (u_int64_t)arg; - if (func == child_return && !(l->l_proc->p_flag & P_32)) + if (func == child_return && !(l->l_proc->p_flag & PK_32)) sf->sf_rip = (u_int64_t)child_trampoline; else sf->sf_rip = (u_int64_t)proc_trampoline;