Date: Mon, 28 Dec 2015 22:36:05 +0100 From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= <jean-sebastien.pedron@dumbbell.fr> To: freebsd-x11@freebsd.org Subject: Re: Subscribeubject: Re: Trying to run Broadwell Message-ID: <5681AB45.7060907@dumbbell.fr> In-Reply-To: <CAOc73CCgYFa8BavtVpkE=FOChLDqQEfRPb0EGqHDBRjSo7vXcg@mail.gmail.com> References: <56746186.7000107@dumbbell.fr> <164907.85411.bm@smtp115.sbc.mail.ne1.yahoo.com> <CAOc73CCgYFa8BavtVpkE=FOChLDqQEfRPb0EGqHDBRjSo7vXcg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tImH7pPVOSNKld5vPMerCqarC5uMdug6G Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 21/12/2015 23:22, Ben Woods wrote: >> I believe importing commits from Linux 3.9 would require modifications= >> because of the difference between Linux and FreeBSD? >=20 > Jean-Sebastien would know far more on this subject, but for those > considering contributing to this effort, I have heard the goal was that= if > any elements of the Linux code to be imported had Linuxisms that don't > exist in FreeBSD, rather than change the Linux files, FreeBSD would add= a > shim as separate file(s) to translate those Linuxisms into suitable Fre= eBSD > replacements. >=20 > That way the continual update to newer Linux versions of the code would= n't > require a large patch set to be maintained - the files would be as clos= e to > the Linux versions as possible. >=20 > Sound about right Jean-Sebastien? Yes, that's correct. Currently, I try to put wrappers in: sys/dev/drm2/drm_os_freebsd.[ch] It's ugly because all APIs are mixed in those two files and I still need to change #includes everywhere. The end goal is to use the new linuxkpi module to avoid this and centralize the Linux shim. I'm not aiming at the possibility to drop Linux files in FreeBSD without modifications. Only some APIs will be wrapped. Others, like the calls to our VM will probably never be wrapped : both VMs don't have the same behaviour and hiding the differences behind such a shim could be dangerou= s. --=20 Jean-S=E9bastien P=E9dron --tImH7pPVOSNKld5vPMerCqarC5uMdug6G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJWgatFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NzA4N0ZEMUFFQUUwRTEyREJDNkE2RjAz OUU5OTc2MUE1RkQ5NENDAAoJEDnpl2Gl/ZTMnf4QAIamORV7t5kBpT7XPoVGUcQI Fbij/7Q1pp6IA7RHhzxSmDg+jWbL+CkL+lEglL/1vV0Whxm4b0oC1k8SGvYQ7W2m 80eff/+ljJtqIur+S2UHKl3edBUNQ6oVb1CvXOhg88IeP6KwFRaS76UNOeJ1k5+j 1X+CMdkZU9Mv1HkpTmtmCaW5EuvL9y/I+cV1o0eIZBwTveMlC4XcS/WSdi41XKy/ kK+Ht4xI+c6gIxpxTiR3ccQqbImDHIv6b/yMpM+2f35t0I0qbU5F//MBCQsyTBzi kqQoo3IwgxUEqjjIDFcunjih9taDSyvyMJ4IPZQ0CRe1ti0PiFnPsW7J3QlFA8oZ LenKgszewvBgY4UJKdpP0C3DyVRocDoAHJGd8L9Oqiy0s/o9SWa0rCQtgMABfv5/ 92ptC25sPxlKaE+0mNwZgt6tnNDCitoivWWbLwwufsSf8Qa4FwYNw+WipNe9CLRE Af9/lrPmykL8aszFVWxXYUv4UEcXTh6+oozXLaEY9Gch9gRKz00UUDms4zFVSXP/ drbY30zvBtmU+yCWV5elv2PP7gWmHak9KYrPUsuWBkGapTsnzLNa69NfZW7IGqV1 nqv41XXgHEVnj+Ifg27WxvSq3YqNuXiQk+ZF7Lb3w0hFX64BruwKCqh1roxq+vrt X383Wz1lQONbWJWdT/At =PSkX -----END PGP SIGNATURE----- --tImH7pPVOSNKld5vPMerCqarC5uMdug6G--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5681AB45.7060907>