Subject: Re: CVS commit: syssrc/sys/arch/powerpc/powerpc
To: Matt Thomas <matt@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: source-changes
Date: 10/31/2002 16:48:33
On Fri, Nov 01, 2002 at 02:02:41AM +0200, Matt Thomas wrote:
> Module Name: syssrc
> Committed By: matt
> Date: Fri Nov 1 00:02:40 UTC 2002
>
> Modified Files:
> syssrc/sys/arch/powerpc/powerpc: syscall.c
>
> Log Message:
> In struct emul, e_nsysent is *not* initialized to *SYS_NSYSENT but
> *SYS_MAXSYSCALL. Adjust to this and simply compare 'code' to it instead
> of doing the p-o-2 dance.
Hm... the p-o-2 dance is to allow it to simple mask-and-jump, to save
the comparison and branch.... I think it *should* actually be NSYSENT.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>