Subject: Re: CVS commit: syssrc/sys/arch/powerpc/powerpc
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: Matt Thomas <matt@3am-software.com>
List: tech-kern
Date: 11/01/2002 09:50:54
At 06:28 AM 11/1/2002, Jaromir Dolecek wrote:
>Matt Thomas wrote:
> > >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.
>
>I don't understand. Note that the syscall array is rounded up to
>nearest power of two, so there are guaranteed to be 512 entries
>at the moment. The code there should work just fine in the form it
>was in rev 1.8. What was the exact problem you tried to fix?
>Note that MACH_SYS_MAXSYSCALL == MACH_SYS_NSYSENT == 128.

SYS_MAXSYSCALL (346) != SYS_NSYSENT (512).


-- 
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