[PATCH] 32 bit compatibility ioctls for radeon driver

Jean-Sébastien Pédron dumbbell at FreeBSD.org
Mon Apr 28 14:15:50 UTC 2014


On 18.03.2014 12:09, Jan Kokemüller wrote:
> I've noticed that the kernel currently pagefaults when trying to run
> 32-bit 3D applications under a 64-bit kernel with a Radeon card when
> COMPAT_FREEBSD32 is defined. The generic DRM code tries to access the
> compat_ioctls_nr and compat_ioctls fields of the drm_driver_info struct,
> but they aren't set by the radeon driver.
> I've tried to translate the compatibility ioctls in radeon_ioc32.c from
> the Linux versions to FreeBSD. It seems to work fine with 32-bit
> glxgears and some games under Wine.
> A patch is attached.

Hello Jan!

I tried your patch this week-end and I was able to play to StarCraft II
on FreeBSD 11-CURRENT :) I committed it to my DRM update branch for now,
but will commit it to HEAD and stable/{10,9} as soon as I can.

Thank you for your work!

-- 
Jean-Sébastien Pédron

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20140428/dab3f0a0/attachment.sig>


More information about the freebsd-x11 mailing list