From owner-freebsd-hackers Tue Jul 14 08:36:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA19933 for freebsd-hackers-outgoing; Tue, 14 Jul 1998 08:36:30 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from coleridge.kublai.com (coleridge.kublai.com [207.96.1.116]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA19928 for ; Tue, 14 Jul 1998 08:36:27 -0700 (PDT) (envelope-from shmit@natasya.kublai.com) Received: from natasya.kublai.com (natasya.kublai.com [207.172.25.236]) by coleridge.kublai.com (8.8.8/8.8.8) with ESMTP id LAA07589; Tue, 14 Jul 1998 11:36:20 -0400 (EDT) (envelope-from shmit@natasya.kublai.com) Received: (from shmit@localhost) by natasya.kublai.com (8.8.8/8.8.8) id LAA23207; Tue, 14 Jul 1998 11:36:18 -0400 (EDT) Message-ID: <19980714113618.23544@kublai.com> Date: Tue, 14 Jul 1998 11:36:18 -0400 From: Brian Cully To: Steven Kehlet , Jonny Cc: hackers@FreeBSD.ORG Subject: Re: Assembly.. Reply-To: shmit@kublai.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: ; from Steven Kehlet on Mon, Jul 13, 1998 at 05:55:06PM -0700 X-Sender: If your mailer pays attention to this, it's broken. X-PGP-Info: finger shmit@kublai.com for my public key. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jul 13, 1998 at 05:55:06PM -0700, Steven Kehlet wrote: > (gdb) disass main > Dump of assembler code for function main: > 0x15b0
: pushl $0x0 > 0x15b2 : leal 0x1,%eax > 0x15b8 : pushl 0x1234 > 0x15be : lcall 0x7,0x0 > End of assembler dump. > (gdb) > > ... just like it should. Oh yeah, though, there's one more weird thing. > Note that "pushl 0x1234" I stuck in there. I found you need to > push this garbage value onto the stack before doing the lcall. I noticed the same thing when I was doing it with int $0x80, and not lcall. What is the purpose of that value? From looking in /sys/i386/i386/trap.c it appears to be ignored: params = (caddr_t)frame.tf_esp + sizeof(int); Did it used to be used to hold an RTA or something? -bjc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message