Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Mar 2004 21:47:10 +0100
From:      des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
To:        chungwei Hsiung <chsiung2@buffalo.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Strange instructions in compiler output
Message-ID:  <xzpeks5u2i9.fsf@dwp.des.no>
In-Reply-To: <20040306154404.7da5ba81@bear.bflony.adelphia.net> (chungwei Hsiung's message of "Sat, 6 Mar 2004 15:44:04 %2B0000")
References:  <4048CA38.6040203@yahoo.com> <20040305233209.GO67801@wantadilla.lemis.com> <20040306142651.314430be@bear.bflony.adelphia.net> <20040306202517.GA8384@x-anthony.com> <xzpllmdu37s.fsf@dwp.des.no> <20040306154404.7da5ba81@bear.bflony.adelphia.net>

next in thread | previous in thread | raw e-mail | index | archive | help
chungwei Hsiung <chsiung2@buffalo.edu> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpeks5u2i9.fsf>