From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 21 16:21:17 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89C6816A4CE for ; Mon, 21 Mar 2005 16:21:17 +0000 (GMT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B08A43D41 for ; Mon, 21 Mar 2005 16:21:17 +0000 (GMT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.13.1/8.13.1) with ESMTP id j2LGL99g017200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Mar 2005 11:21:09 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id j2LGL4i3060077; Mon, 21 Mar 2005 11:21:04 -0500 (EST) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16958.62576.271134.811502@grasshopper.cs.duke.edu> Date: Mon, 21 Mar 2005 11:21:04 -0500 (EST) To: Krzysztof Drewicz In-Reply-To: <20050319224648.GA30079@pancake.sggw.waw.pl> References: <20050316151639.GA6424@pancake.sggw.waw.pl> <20050316182800.GC91771@hub.freebsd.org> <16955.20467.474306.849814@grasshopper.cs.duke.edu> <20050319224648.GA30079@pancake.sggw.waw.pl> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid cc: freebsd-emulation@freebsd.org cc: Andrew Gallatin Subject: Re: user-mode-linux in fbsd X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 16:21:17 -0000 Krzysztof Drewicz writes: > On Fri, Mar 18, 2005 at 05:02:27PM -0500, Andrew Gallatin wrote: > > Only s/=4096/+=4096/ or cast 4096 to a pointer type in your patch. Yes, it was intended to be mostly a hack to prove that the problem was with the algorithm that selected a bad location for mmap if no hint was given. > I've figured out: > linux: ptrace(24, ...) not implemented > > And any of 'ptrace' in sys/compat/ is not implemented, uml says "we depend > on ptrace" so it's not possilble right now. FreeBSD also has a ptrace, and a quick glance makes it look like there may be a 1:1 mapping for most things. But the PTRACE_PEEKUSER / PTRACE_POKEUSER that uml is trying to do to change sycall numbers sounds rather scary. I'm not sure if there would be a 1:1 mapping for that, and I don't think I understand what they are doing well enough to write it from scratch. Drew