lkml.org 
[lkml]   [2004]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: max agruments in system_calls
On Thu, 18 Nov 2004, Jan Engelhardt wrote:

>> Huh? You KNOW that you don't have more than 7 registers available
>> on ix86 so you KNOW that you either need a pointer to a struct (one
>> parameter) or it won't work.
>>
>> FYI:
>> eax = function code
>> ebx = first parameter
>> ecx = second parameter
>> edx = third parameter
>> esi = fourth parameter
>> edi = fifth parameter
>> ebp = sixth parameter
>
> And if you use varargs?
>
>
>
Not relevant. You can't pass your arguments on the stack with
any efficiency (you become Windows) because the user-stack is
just data in the kernel. One would have to copy from the user
stack which is about as inefficient as possible.

> Jan Engelhardt
> --
> Gesellschaft fÿÿr Wissenschaftliche Datenverarbeitung
> Am Fassberg, 37077 Gÿÿttingen, www.gwdg.de
>

Cheers,
Dick Johnson
Penguin : Linux version 2.6.9 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by John Ashcroft.
98.36% of all statistics are fiction.
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.044 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site