From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 6 12:47:18 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E24F16A4CE for ; Sat, 6 Mar 2004 12:47:18 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19CB243D39 for ; Sat, 6 Mar 2004 12:47:18 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id E7DD0530E; Sat, 6 Mar 2004 21:47:16 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id B7DDD530A; Sat, 6 Mar 2004 21:47:10 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 42E4633CA4; Sat, 6 Mar 2004 21:47:10 +0100 (CET) To: chungwei Hsiung References: <4048CA38.6040203@yahoo.com> <20040305233209.GO67801@wantadilla.lemis.com> <20040306142651.314430be@bear.bflony.adelphia.net> <20040306202517.GA8384@x-anthony.com> <20040306154404.7da5ba81@bear.bflony.adelphia.net> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Sat, 06 Mar 2004 21:47:10 +0100 In-Reply-To: <20040306154404.7da5ba81@bear.bflony.adelphia.net> (chungwei Hsiung's message of "Sat, 6 Mar 2004 15:44:04 +0000") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-hackers@freebsd.org Subject: Re: Strange instructions in compiler output X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2004 20:47:18 -0000 chungwei Hsiung writes: > I still don't understand it because we are supposed to pass in the > op code 0xb to %eax, and arguments to %ebx, %ecx, and %edx before > calling interupt, but I can't see any of those instruction > anywhere. Did I miss anything? Huh? Arguments are passed on the stack, and execve() is syscall 59 (0x3b as you can see in the disassembly). What gave you the idea that we were passing arguments in registers? This isn't DOS, you know... DES --=20 Dag-Erling Sm=F8rgrav - des@des.no