From owner-freebsd-current Wed Apr 24 8:34: 4 2002 Delivered-To: freebsd-current@freebsd.org Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by hub.freebsd.org (Postfix) with ESMTP id 9679237B4A5; Wed, 24 Apr 2002 08:31:51 -0700 (PDT) Received: from pyanfar.ece.cmu.edu (allbery@PYANFAR.ECE.CMU.EDU [128.2.136.40]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id g3OFV9w21160; Wed, 24 Apr 2002 11:31:09 -0400 (EDT) Subject: Re: implementing linux mmap2 syscall From: Brandon S Allbery KF8NH To: Andrew Gallatin Cc: Kenneth Culver , freebsd-hackers@FreeBSD.ORG, FreeBSD-CURRENT List In-Reply-To: <15558.46600.351433.784766@grasshopper.cs.duke.edu> References: <15557.27747.802212.659760@grasshopper.cs.duke.edu> <20020423181748.W31638-100000@alpha.yumyumyum.org> <15558.46600.351433.784766@grasshopper.cs.duke.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 Date: 24 Apr 2002 12:31:08 -0300 Message-Id: <1019662269.6094.1.camel@pyanfar.ece.cmu.edu> Mime-Version: 1.0 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2002-04-24 at 10:41, Andrew Gallatin wrote: > Maybe the argument isn't where you expect it to be, but is there. > Can you make a test program which calls mmap2 with its 6th arg as > something unique like 0xdeadbeef? Then print out (in hex :) the trapframe > from the linux prepsyscall routine & see if you can find the deadbeef. My recollection is that beyond 5 arguments, a pointer to the remaining ones is passed. (But my recollection may be wrong and I don't wish to subject myself to the source cesspool at the moment....) -- brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net system administrator [WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university ["better check the oblivious first" -ke6sls] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message