From owner-freebsd-emulation@FreeBSD.ORG Mon May 30 18:01:34 2005 Return-Path: X-Original-To: emulation@freebsd.org 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 16BB716A41F for ; Mon, 30 May 2005 18:01:34 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from smtp.cegetel.net (mf01.sitadelle.com [212.94.174.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D9E043D4C for ; Mon, 30 May 2005 18:01:33 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from Portable (80-125-70-27.dti.cegetel.net [80.125.70.27]) by smtp.cegetel.net (Postfix) with ESMTP id D1D9A318399; Mon, 30 May 2005 20:01:31 +0200 (CEST) From: "jean-marc DETREZ" To: , Date: Mon, 30 May 2005 20:01:18 +0200 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcVlQZQKVjoAexMkSoqDz0kYacI81A== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Message-Id: <20050530180131.D1D9A318399@smtp.cegetel.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: patch for unbreaking wine on freebsd X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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, 30 May 2005 18:01:34 -0000 Hi, I'm currently testing a patch I've made for unbreaking wine on FreeBSD.I'ts seems that like other OS a call to mmap() return not always the desired address range. For NetBSD it appears that a special function was compiled "try_mmap_fixed" who call mmap with MAP_FIXED after verifying that the memory address is free. I'm use this function to Create Heap System at base address 0x80000000 , I didn't always use that function for all calls to mmap because it seems that cause performance issues. I made a little correction of "try_mmap_fixed" because it's seems to me that the function didn't really test the result (vec). What do you think of that, if it work for all (emulation@freebsd.com: could you test) could you insert it in the future wine release? Don't miss to give me feedback, I've a few more patch to send. Jean-marc.