[PATCH] 32 bit compatibility ioctls for radeon driver

Jan Kokemüller jan.kokemueller at gmail.com
Tue Mar 18 11:09:26 UTC 2014


Hi,
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-radeon-add-32-bit-compatibility-ioctls.patch
Type: text/x-patch
Size: 20074 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20140318/14066d38/attachment.bin>


More information about the freebsd-x11 mailing list