Date: Fri, 22 Apr 2005 16:26:18 +0300 From: Alexey Zelkin <phantom@FreeBSD.org.ua> To: Clarence Chu <clcchu@hotmail.com> Cc: freebsd-x11@freebsd.org Subject: Re: native jdk-15.2 on FreeBSD/amd64? Message-ID: <20050422132618.GA20510@phantom.cris.net> In-Reply-To: <BAY16-F159DC881044D99BAB63BEBDD2D0@phx.gbl> References: <20050422124127.GA20205@phantom.cris.net> <BAY16-F159DC881044D99BAB63BEBDD2D0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 22, 2005 at 08:44:06PM +0800, Clarence Chu wrote: > > > > >There're some reported problems with EMT64 support which fixed > >in Sun closed distribution, but not made available yet to open source > >world. As for minimal requirement to build/run -- yes. > could the em64t problem be fixed as follows? > > ---- jdk15.patches.orig Thu Jan 20 04:47:28 2005 > +++ jdk15.patches Fri Apr 22 18:00:54 2005 > @@ -13916,7 +13916,7 @@ > diff -N hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp > --- hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp 1 > Jan 170 00:00:00 -0000 > +++ hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp 23 > Dec > 004 19:35:20 -0000 1.2 > -@@ -0,0 +1,21 @@ > +@@ -0,0 +1,24 @@ > +/* > + * $Id: prefetch_bsd_amd64.inline.hpp,v 1.2 2004/12/23 19:35:20 phantom > Exp $ > + */ > @@ -13935,8 +13935,11 @@ > + // Force prefetchw. The gcc builtin produces prefetcht0 or prefetchw > + // depending on command line switches we don't control here. > + // Use of this method should be gated by VM_Version::has_prefetchw. > -+ __asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval)); > ++ //__asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval)); > + // __builtin_prefetch((char*) loc + interval, 1); // > prefetcht0/prefetchw > %rsi,%rdi,1) > ++ // prefetcht0/prefetchw (%rsi,%rdi,1) > ++ // Do not use the 3dnow prefetchw instruction. It isn't supported on > em64t > ++ __asm__ ("prefetcht0 (%0,%1,1)" : : "r" (loc), "r" (interval)); > +} > Index: hotspot/src/os_cpu/bsd_amd64/vm/runtime_bsd_amd64.cpp > =================================================================== > > _________________________________________________________________ > Learn English and redeem a Sony PSP at only HK$280! > http://go.msnserver.com/HK/46165.asp -- /* Alexey Zelkin && Independent Contractor */ /* phantom(at)FreeBSD.org && http://www.FreeBSD.org/java */ /* phantom(at)cris.net && http://www.FreeBSD.org.ua/ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050422132618.GA20510>