public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* syscall numbers larger than 255?
@ 2003-11-10 15:36 Chris Friesen
  2003-11-10 15:58 ` Richard B. Johnson
  2003-11-10 16:35 ` Davide Libenzi
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Friesen @ 2003-11-10 15:36 UTC (permalink / raw)
  To: linux-kernel


Just a quick and simple question for someone that knows the answer.

Stock 2.4.20 for i386 uses syscalls up to 252.  I want to add about a 
half-dozen new syscalls (forward porting stuff that we've got on 2.4.18).

Does x86 support syscall numbers > 255?  If yes, do I have to do 
anything special to use them? If not, what are my options?

Thanks,

Chris

-- 
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: syscall numbers larger than 255?
       [not found] <3FAFB081.3090900@nortelnetworks.com.suse.lists.linux.kernel>
@ 2003-11-10 15:54 ` Andi Kleen
  0 siblings, 0 replies; 4+ messages in thread
From: Andi Kleen @ 2003-11-10 15:54 UTC (permalink / raw)
  To: Chris Friesen; +Cc: linux-kernel

Chris Friesen <cfriesen@nortelnetworks.com> writes:

> Just a quick and simple question for someone that knows the answer.
> 
> Stock 2.4.20 for i386 uses syscalls up to 252.  I want to add about a
> half-dozen new syscalls (forward porting stuff that we've got on
> 2.4.18).
> 
> Does x86 support syscall numbers > 255?  If yes, do I have to do
> anything special to use them? If not, what are my options?

They should work fine on x86.

-Andi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: syscall numbers larger than 255?
  2003-11-10 15:36 syscall numbers larger than 255? Chris Friesen
@ 2003-11-10 15:58 ` Richard B. Johnson
  2003-11-10 16:35 ` Davide Libenzi
  1 sibling, 0 replies; 4+ messages in thread
From: Richard B. Johnson @ 2003-11-10 15:58 UTC (permalink / raw)
  To: Chris Friesen; +Cc: Linux kernel

On Mon, 10 Nov 2003, Chris Friesen wrote:

>
> Just a quick and simple question for someone that knows the answer.
>
> Stock 2.4.20 for i386 uses syscalls up to 252.  I want to add about a
> half-dozen new syscalls (forward porting stuff that we've got on 2.4.18).
>
> Does x86 support syscall numbers > 255?  If yes, do I have to do
> anything special to use them? If not, what are my options?
>
> Thanks,
>
> Chris

Sure. With the old int 0x80 calling convention, the syscall number
is just put into the EAX register which can contain 32 bits. There
may be some mask on the kernel side to limit 'damage', but you
can change this if you are adding system-calls. The newer calling
convention also has just the 32 bit limitation.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: syscall numbers larger than 255?
  2003-11-10 15:36 syscall numbers larger than 255? Chris Friesen
  2003-11-10 15:58 ` Richard B. Johnson
@ 2003-11-10 16:35 ` Davide Libenzi
  1 sibling, 0 replies; 4+ messages in thread
From: Davide Libenzi @ 2003-11-10 16:35 UTC (permalink / raw)
  To: Chris Friesen; +Cc: Linux Kernel Mailing List

On Mon, 10 Nov 2003, Chris Friesen wrote:

> 
> Just a quick and simple question for someone that knows the answer.
> 
> Stock 2.4.20 for i386 uses syscalls up to 252.  I want to add about a 
> half-dozen new syscalls (forward porting stuff that we've got on 2.4.18).
> 
> Does x86 support syscall numbers > 255?  If yes, do I have to do 
> anything special to use them? If not, what are my options?

Currently there's a discrepancy between include/asm-i386/unistd.h and 
arch/i386/kernel/entry.S. While the first define function numbers up to 
252, the entry.S file fill up the table up to 258 (epoll crosses the 255 
boundary :).



- Davide



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-11-18 13:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-10 15:36 syscall numbers larger than 255? Chris Friesen
2003-11-10 15:58 ` Richard B. Johnson
2003-11-10 16:35 ` Davide Libenzi
     [not found] <3FAFB081.3090900@nortelnetworks.com.suse.lists.linux.kernel>
2003-11-10 15:54 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox