Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2006 22:00:50 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        emulation@freebsd.org
Subject:   Re: amd64 tls
Message-ID:  <46791581@bsam.ru>
In-Reply-To: <20060820165218.GA68068@stud.fit.vutbr.cz> (Divacky Roman's message of "Sun, 20 Aug 2006 18:52:19 %2B0200")
References:  <20060820165218.GA68068@stud.fit.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46791581>