Subject: Re: Syscall number space
To: Darren Reed <darrenr@netbsd.org>
From: Matt Thomas <matt@3am-software.com>
List: tech-kern
Date: 08/26/2007 22:10:40
On Aug 26, 2007, at 10:01 PM, Darren Reed wrote:

> Jason Thorpe wrote:
>> On Aug 26, 2007, at 8:29 PM, Thor Lancelot Simon wrote:
>>> Because that's the currently configured limit in syscalls.master.
>>
>> The only reason that's set like that was to make the number of  
>> system call slots a power of two (512 happened to be the closest  
>> power of two).  Making it a power of two enables some  
>> optimizations in the low-level system call handler.
>>
>> There is no harm in simply making it 1024 (aside from some wasted  
>> space).
>
> I looked quickly to see if there was any such beastie but obviously  
> i didn't
> look hard enough (or in the right place.)  Where should I look to  
> see where
> this table is built and used?

sys/arch/*/*/syscall.[csS]

sys/kern/Makefile (make init_sysent.c)