Skip to contentSkip to conversation

> 6 kernel arguments?

DISCUSSION H. Peter Anvin 3 participants 4 messages Feb 21, 2012 – Feb 23, 2012 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

Do we have any architectures which define more than 6 kernel arguments?

-hpa

Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.
#1 lore raw
Quoted 1 line · H. Peter Anvin

Do we have any architectures which define more than 6 kernel arguments?

To a system call, you mean?

David

#2 lore raw

Yes, system call arguments. I vaguely remember there being some architecture supporting 7 since pselect() was introduced, but I could just be full of it.

Quoted 8 lines · David Howells
Quoted 1 line · H. Peter Anvin

Do we have any architectures which define more than 6 kernel

arguments?

To a system call, you mean?

David

Signature · 1 line
Sent from my mobile phone. Please excuse my brevity and lack of formatting.
#3 lore raw
Quoted 3 lines · H. Peter Anvin

Yes, system call arguments. I vaguely remember there being some architecture supporting 7 since pselect() was introduced, but I could just be full of it.

The parisc ABI allows for up to 8 register based arguments to a system (or indeed any function) call. However, in deference to the usual linux calling conventions, we only use seven of them (one for the syscall number and 6 for the arguments). We definitely use pselect6. I think the architecture you're thinking of is microblaze, but it's obsoleted it's seven argument version of pselect.

James