From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 20 18:02:18 2006 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 82AC416A4E0 for ; Sun, 20 Aug 2006 18:02:18 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFDEA43D5A for ; Sun, 20 Aug 2006 18:02:16 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.165]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7KI1vdX075568; Sun, 20 Aug 2006 22:02:07 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GErbO-0000Ba-65; Sun, 20 Aug 2006 22:00:50 +0400 To: Divacky Roman References: <20060820165218.GA68068@stud.fit.vutbr.cz> From: Boris Samorodov Date: Sun, 20 Aug 2006 22:00:50 +0400 In-Reply-To: <20060820165218.GA68068@stud.fit.vutbr.cz> (Divacky Roman's message of "Sun, 20 Aug 2006 18:52:19 +0200") Message-ID: <46791581@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org Subject: Re: amd64 tls 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, 20 Aug 2006 18:02:18 -0000 On Sun, 20 Aug 2006 18:52:19 +0200 Divacky Roman wrote: > www.stud.fit.vutbr.cz/~xdivac02/amd64-tls.patch > pls test and tell me :) The patch doesn't apply cleanly to -current amd64 (as of yesterday): ----- ... Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |==== //depot/projects/soc2006/rdivacky_linuxolator/amd64/linux32/linux32_machdep.c#9 - /root/projects/soc2006/amd64/linux32/linux32_machdep.c ==== |--- /tmp/tmp.59197.1 Sun Aug 20 18:43:43 2006 |+++ /root/projects/soc2006/amd64/linux32/linux32_machdep.c Sun Aug 20 18:42:10 2006 -------------------------- Patching file amd64/linux32/linux32_machdep.c using Plan A... Hunk #1 succeeded at 61 with fuzz 2 (offset -1 lines). Hunk #2 failed at 619. Hunk #3 succeeded at 1086 (offset -85 lines). 1 out of 3 hunks failed--saving rejects to amd64/linux32/linux32_machdep.c.rej ... ----- But if I apply your amd64.patch and then amd64-tls.patch both apply cleanly. But then kernel doesn't build: ----- ... cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/amd64/linux32/linux32_machdep.c /usr/src/sys/amd64/linux32/linux32_machdep.c: In function `linux_clone': /usr/src/sys/amd64/linux32/linux32_machdep.c:670: warning: left shift count >= width of type /usr/src/sys/amd64/linux32/linux32_machdep.c: In function `linux_set_thread_area': /usr/src/sys/amd64/linux32/linux32_machdep.c:1262: warning: left shift count >= width of type *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 ----- I'm ready for your further instructions. ;-) WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve