, Matt Thomas <matt@netbsd.org>
From: Matt Thomas <matt@3am-software.com>
List: tech-kern
Date: 10/31/2002 19:48:22
At 04:48 PM 10/31/2002, Jason R Thorpe wrote:
>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.
So do I, but that isn't currently done.
--
Matt Thomas Internet: matt@3am-software.com
3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt/
Cupertino, CA Disclaimer: I avow all knowledge of this message