Subject: Re: What does the edx register do in syscall
To: None <netbsd-ports@sun-lamp.cs.berkeley.edu,>
From: None <mycroft@gnu.ai.mit.edu>
List: netbsd-ports
Date: 02/13/1994 00:56:20
There can be two return values from a syscall. Most only use one. As
an example, though, fork() always returns the pid of the `other' process
in %eax, and %edx specifies whether it's returned to the parent or the
child. (This is used by libc to force %eax to be 0 in the child.)
Generally, you should be able to look for occurences of `retval[1]' in
the kernel to find other uses of %edx.
------------------------------------------------------------------------------