[klibc] [PATCH] vfork() for parisc
H. Peter Anvin
hpa at zytor.com
Tue Jul 25 15:28:32 PDT 2006
Kyle McMartin wrote:
> On Tue, Jul 25, 2006 at 02:58:02PM -0700, H. Peter Anvin wrote:
>> Kyle McMartin wrote:
>>> Implement "pid_t vfork(void)" for parisc.
>>>
>> Dumb question... where does %r20 get set? This isn't invoked by a
>> system call stub; it's the entire function.
>>
>
> Oh. Nowhere then. We can set it in the branch delay slot.
>
Cool. Could you do a "make test" and run usr/klibc/tests/vfork to verify?
(For completeness sake: klibc supports generating stubs for alternate
system call conventions by using the following syntax in SYSCALLS.def:
returntype syscall at convention(args...);
The string "convention" gets passed to sysstub.ph; on most architectures
it simply replaces the string "common" in "__syscall_common".
However, there isn't exactly any point to do that for single-shot system
call conventions, like vfork() and pipe() on many platforms.
-hpa
More information about the klibc
mailing list