Do not use SYS_NSYSENT but the corresponding emulation definitions

instead {LINUX,LINUX32}_SYS_NSYSENT.

While here, cleanup some includes.
This commit is contained in:
njoly 2008-03-06 15:16:47 +00:00
parent e52ed14a31
commit e2a3dc2ff1
2 changed files with 8 additions and 8 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -16,7 +16,8 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_syscall.c,v 1.21 2008/02/24 18:30:07 dsl Exp
#include <machine/psl.h>
#include <machine/userret.h>
#include <compat/linux32/arch/amd64/linux32_errno.h>
#include <compat/linux32/linux32_syscall.h>
#include <compat/linux32/common/linux32_errno.h>
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;
/*

View File

@ -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 <sys/cdefs.h>
__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 <compat/linux/common/linux_signal.h>
#include <compat/linux/common/linux_siginfo.h>
#include <compat/linux/arch/amd64/linux_siginfo.h>
#include <compat/linux/arch/amd64/linux_syscall.h>
#include <compat/linux/arch/amd64/linux_machdep.h>
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;
/*