Re: [PATCHv3 0/4] sys_indirect system call

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ulrich Drepper <drepper@...>
Cc: <linux-kernel@...>, <akpm@...>, <mingo@...>, <tglx@...>, <torvalds@...>
Date: Sunday, November 18, 2007 - 3:44 am

Ulrich Drepper wrote:

I stared at this a bit, and it took me some time to try to grok what it 
is trying to do.  Eventually I figured it out, and I wonder if there 
isn't an easier -- or at least more efficient -- way to accomplish this 
goal.

It seems to me that we could accomplish the same thing by passing the 
number of parameters in the upper bits of the system call number 
register (%eax in the case of x86.)  If set to zero, we'd fill in the 
legacy number of registers (for backwards compatibility.)  Unspecified 
arguments are then forced to zero before invoking the target function; 
we could also make a register count available if need be.

Alternatively, the same thing can be done with a dense system call 
number space by adding a number of parameters field to the system call 
table, however, that is more invasive in that one has to poke something 
into each architecture (unfortunately -- it would be so much nicer if 
there was a central metafile which one could process into the various 
architecture system call tables.)

	-hpa
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHv3 0/4] sys_indirect system call, Ulrich Drepper, (Sat Nov 17, 1:31 am)
Re: [PATCHv3 0/4] sys_indirect system call, Eric Dumazet, (Mon Nov 19, 9:52 am)
Re: [PATCHv3 0/4] sys_indirect system call, Ulrich Drepper, (Mon Nov 19, 11:12 am)
Re: [PATCHv3 0/4] sys_indirect system call, Eric Dumazet, (Mon Nov 19, 11:43 am)
Re: [PATCHv3 0/4] sys_indirect system call, Ulrich Drepper, (Mon Nov 19, 11:48 am)
Re: [PATCHv3 0/4] sys_indirect system call, Eric Dumazet, (Mon Nov 19, 12:14 pm)
Re: [PATCHv3 0/4] sys_indirect system call, Ingo Molnar, (Mon Nov 19, 3:08 pm)
Re: [PATCHv3 0/4] sys_indirect system call, dean gaudet, (Tue Nov 20, 10:11 am)
Re: [PATCHv3 0/4] sys_indirect system call, Ulrich Drepper, (Tue Nov 20, 12:16 pm)
Re: [PATCHv3 0/4] sys_indirect system call, H. Peter Anvin, (Sun Nov 18, 3:44 am)
Re: [PATCHv3 0/4] sys_indirect system call, Ulrich Drepper, (Sun Nov 18, 5:36 am)
Re: [PATCHv3 0/4] sys_indirect system call, H. Peter Anvin, (Sun Nov 18, 3:37 pm)
Re: [PATCHv3 0/4] sys_indirect system call, Ulrich Drepper, (Mon Nov 19, 11:28 pm)
Re: [PATCHv3 0/4] sys_indirect system call, H. Peter Anvin, (Tue Nov 20, 12:27 am)