From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 10 11:49:33 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A1771065672 for ; Sun, 10 Aug 2008 11:49:33 +0000 (UTC) (envelope-from root@dchagin.dialup.corbina.ru) Received: from contrabass.post.ru (contrabass.post.ru [85.21.78.5]) by mx1.freebsd.org (Postfix) with ESMTP id 0606F8FC1C for ; Sun, 10 Aug 2008 11:49:32 +0000 (UTC) (envelope-from root@dchagin.dialup.corbina.ru) Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id 17553164878 for ; Sun, 10 Aug 2008 15:21:08 +0400 (MSD) X-Virus-Scanned: by cgpav Uf39PSi9pFi9oFi9 Received: from [10.208.17.3] (HELO dchagin.dialup.corbina.ru) by corbina.ru (CommuniGate Pro SMTP 5.1.14) with ESMTPS id 931996636 for freebsd-emulation@freebsd.org; Sun, 10 Aug 2008 15:21:07 +0400 Received: from dchagin.dialup.corbina.ru (localhost.chd.net [127.0.0.1]) by dchagin.dialup.corbina.ru (8.14.2/8.14.2) with ESMTP id m7A7KJ6M015398 for ; Sun, 10 Aug 2008 11:20:19 +0400 (MSD) (envelope-from root@dchagin.dialup.corbina.ru) Received: (from root@localhost) by dchagin.dialup.corbina.ru (8.14.2/8.14.2/Submit) id m7A7KDjY015397 for freebsd-emulation@freebsd.org; Sun, 10 Aug 2008 11:20:13 +0400 (MSD) (envelope-from root) Date: Sun, 10 Aug 2008 11:20:13 +0400 From: Chagin Dmitry To: freebsd-emulation@freebsd.org Message-ID: <20080810072013.GA15196@dchagin.dialup.corbina.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: x86_64 linuxulator patches 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: Sun, 10 Aug 2008 11:49:33 -0000 Hi, as promised, I place x86_64 linuxulator patches. here the basic patch: http://78.107.232.239/linuxulator64-current.patch here recvmsg && sendmsg patch (not tested with really applications): http://78.107.232.239/send-recv-msg.patch here master repository: git://78.107.232.239/linuxulator and ports used for testing (and only for testing): git://78.107.232.239/linux_base-f8 git://78.107.232.239/linux_devel-f8 git://78.107.232.239/linux_kdump-1.6 by default on amd64 builds i386 linuxulator, for build x86_64 use cd sys/modules/linux make -D COMPAT_LINUX64 for correct recognition of what linuxulator version is used added new sysctl compat.linux.platform for example use in ports Makefile's: LINUX_PLATFORM!= /sbin/sysctl -n compat.linux.platform 2>/dev/null .if ${LINUX_PLATFORM}x == "x" IGNORE= linuxulator is not (kld)loaded .elif ${LINUX_PLATFORM} == "i386" LINUX_RPM_ARCH= i386 .elif ${LINUX_PLATFORM} == "x86_64" LINUX_RPM_ARCH= x86_64 SFX= 64 .else IGNORE= ${LINUX_PLATFORM} is not supported .endif I shal glad to remarks, proposals and results of testing. thnx -- Have fun! chd