From owner-freebsd-emulation@FreeBSD.ORG Fri Jul 29 18:18:22 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 DFC8716A41F; Fri, 29 Jul 2005 18:18:21 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from smtp.cegetel.net (mf01.sitadelle.com [212.94.174.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4678343D49; Fri, 29 Jul 2005 18:18:20 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from Portable (84-4-225-28.adslgp.cegetel.net [84.4.225.28]) by smtp.cegetel.net (Postfix) with ESMTP id 7F1CB31849E; Fri, 29 Jul 2005 20:18:19 +0200 (CEST) From: "jean-marc DETREZ" To: "'Alexandre Julliard'" Date: Fri, 29 Jul 2005 20:18:11 +0200 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcWUaeBhpXrj6jqATACbARZmzCRwVQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Message-Id: <20050729181819.7F1CB31849E@smtp.cegetel.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: wine-devel@winehq.com, emulation@freebsd.org, 'Dmitry Timoshkov' , barner@FreeBSD.org Subject: 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: Fri, 29 Jul 2005 18:18:22 -0000 Hi, With the differents mails i receive from users or wine's developers, i think that: - Dislike OpenBSD or SRV4, mincore did'nt fail if the page is not mapped no [ENOMEM] error condition. - the FreeBSD man pages say that mmap would fail with [ENOMEM] error condition if address is in use but in the reality it seems always return the start address. So for to use wine on FreeBSD before doing a more clean patch i propose to add this to mmap . I know that it would map memory pages without verify before that the pages is'nt already map but the man pages say it must failed so I'm just verify that the result is equal to start address the mmap call asking for. I do that only when creating System heap because requesting mmap for 0x800000 start address (without MAP_FIXED) always fail and prevent wine running on FreeBSD. I'll do more test to implement a try_mmap_fixed function working on FreeBSD like this done for SRV4,NetBSD and DARWIN. Jean-marc