Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2006 13:12:28 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        emulation@freebsd.org
Subject:   Re: Fix for errno 2 - expected 14 (EFAULT) problems
Message-ID:  <20060917131228.42b2cd23@Magellan.Leidinger.net>
In-Reply-To: <26755448@bsam.ru>
References:  <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
--MP_hVqxU7HOFPeEiuvZfHCf_fb
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Quoting Boris Samorodov <bsam@ipt.ru> (Sun, 17 Sep 2006 03:24:23 +0400):

> On Sat, 16 Sep 2006 17:18:40 +0200 Alexander Leidinger wrote:
> 
> > Anyone with an amd64 system out there and willing to test this (with
> > the LTP testsuite as described on
> > http://wiki.freebsd.org/linux-kernel)? Because this doesn't seems to be
> > the final fix, it isn't necessary to test this particular patch, but it
> > would be nice to know if there are some differences between the results
> > on i386 (as can be seen in the wiki) and amd64.
> 
> Should the patch (linuxolator-p4.diff) from a wiki page be applied to
> -current? It applies well but the kernel is not builded:
> -----

> /usr/src/sys/compat/linux/linux_aio.c:47:36: machine/../linux/linux.h: No such file or directory
> /usr/src/sys/compat/linux/linux_aio.c:48:42: machine/../linux/linux_proto.h: No such file or directory

I committed the attached patch to p4 (please give it a try), I didn't
updated the patch on the webpage yet.

Bye,
Alexander.

-- 
Want colour in your directory listings?  Use "ls -G".  "ls -F" is also useful,
and they can be combined as "ls -FG".
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137

--MP_hVqxU7HOFPeEiuvZfHCf_fb
Content-Type: text/x-patch; name=amd64.diff
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=amd64.diff

Change 106236 by netchild@netchild_magellan on 2006/09/17 11:08:35

	Include the right files on amd64.
	Noticed by:	bsam

Affected files ...

... //depot/projects/linuxolator/src/sys/compat/linux/linux_aio.c#3 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_aio.c#3 (text+ko) ====

@@ -44,8 +44,13 @@
 #include <sys/sx.h>
 #include <sys/sysproto.h>
 
+#ifdef COMPAT_LINUX32
+#include <machine/../linux32/linux.h>
+#include <machine/../linux32/linux32_proto.h>
+#else
 #include <machine/../linux/linux.h>
 #include <machine/../linux/linux_proto.h>
+#endif
 
 #define	LINUX_AIO_DEBUG
 

--MP_hVqxU7HOFPeEiuvZfHCf_fb--



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