From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzzmQ-0007mT-Ou for qemu-devel@nongnu.org; Tue, 11 Nov 2008 15:24:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzzmO-0007ld-SK for qemu-devel@nongnu.org; Tue, 11 Nov 2008 15:24:05 -0500 Received: from [199.232.76.173] (port=42850 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzzmO-0007lU-Fr for qemu-devel@nongnu.org; Tue, 11 Nov 2008 15:24:04 -0500 Received: from csl.cornell.edu ([128.84.224.10]:1121 helo=vlsi.csl.cornell.edu) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KzzmN-0001Fw-RE for qemu-devel@nongnu.org; Tue, 11 Nov 2008 15:24:04 -0500 Received: from stanley.csl.cornell.edu (stanley.csl.cornell.edu [128.84.224.15]) by vlsi.csl.cornell.edu (8.13.4/8.13.4) with ESMTP id mABKNu2i089397 for ; Tue, 11 Nov 2008 15:24:01 -0500 (EST) Date: Tue, 11 Nov 2008 15:23:56 -0500 (EST) From: Vince Weaver Subject: Re: [Qemu-devel] alpha - syscalls can return two values In-Reply-To: <20081111151233.C64870@stanley.csl.cornell.edu> Message-ID: <20081111152045.C64870@stanley.csl.cornell.edu> References: <20081111151233.C64870@stanley.csl.cornell.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org and as soon as I sent this, I realized I was reading the code wrong. It doesn't return the second result in $1, but rather it returns the second result on the stack at offset 80. This remains a problem though, as I don't think there's an easy way to get the stack pointer from the syscall code. The relevant linux-kernel syscall code can be found in ./arch/alpha/kernel/entry.S specifically the getxuid, getxgid, getxpid, syscalls. Vince