diff --git a/sys/arch/amd64/amd64/linux32_syscall.c b/sys/arch/amd64/amd64/linux32_syscall.c index 94e76741ef9a..9f200cfdd78f 100644 --- a/sys/arch/amd64/amd64/linux32_syscall.c +++ b/sys/arch/amd64/amd64/linux32_syscall.c @@ -1,7 +1,7 @@ -/* $NetBSD: linux32_syscall.c,v 1.21 2008/02/24 18:30:07 dsl Exp $ */ +/* $NetBSD: linux32_syscall.c,v 1.22 2008/03/06 15:16:47 njoly Exp $ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux32_syscall.c,v 1.21 2008/02/24 18:30:07 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_syscall.c,v 1.22 2008/03/06 15:16:47 njoly Exp $"); #include #include @@ -16,7 +16,8 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_syscall.c,v 1.21 2008/02/24 18:30:07 dsl Exp #include #include -#include +#include +#include void linux32_syscall_intern(struct proc *); void linux32_syscall(struct trapframe *); @@ -52,7 +53,7 @@ linux32_syscall(frame) callp = p->p_emul->e_sysent; - code &= (SYS_NSYSENT - 1); + code &= (LINUX32_SYS_NSYSENT - 1); callp += code; /* diff --git a/sys/arch/amd64/amd64/linux_syscall.c b/sys/arch/amd64/amd64/linux_syscall.c index 6302c7017356..4823c909119e 100644 --- a/sys/arch/amd64/amd64/linux_syscall.c +++ b/sys/arch/amd64/amd64/linux_syscall.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.c,v 1.22 2008/02/24 18:30:07 dsl Exp $ */ +/* $NetBSD: linux_syscall.c,v 1.23 2008/03/06 15:16:47 njoly Exp $ */ /*- * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.22 2008/02/24 18:30:07 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.23 2008/03/06 15:16:47 njoly Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_linux.h" @@ -62,7 +62,6 @@ __KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.22 2008/02/24 18:30:07 dsl Exp $ #include #include #include -#include #include void linux_syscall_intern(struct proc *); @@ -100,7 +99,7 @@ linux_syscall(struct trapframe *frame) callp = p->p_emul->e_sysent; - code &= (SYS_NSYSENT - 1); + code &= (LINUX_SYS_NSYSENT - 1); callp += code; /*