[MPlayer-matrox] [PATCH] compat-ioctl glue code to make mga_vid work for 32-bit mplayer on 64-bit kernel

Dirk Porezag porezag at yahoo.com
Mon Sep 1 23:58:41 CEST 2008


I'm using 32-bit mplayer with a 64-bit amd64 kernel on Debian testing, kernel 2.6.26. The current SVN mga_vid kernel module won't work with this setup since it is missing the compat_ioctl declarations necessary for 32-bit binaries calling ioctls on a 64-bit Linux kernel. So I made a patch that provides the necessary "glue code". I'm not an expert at this but it seems that the mga_vid module is 64-bit clean already (no "long" data types etc.) and all one has to do is to provide the compat_ioctl method which then calls the native mga_vid_ioctl in turn. I have tested this successfully with the Debian testing 2.6.26-1-amd64 kernel and since the changes are fairly simple most other kernels should work the same. Patch is against the SVN version of mga_vid.c (2008-08-02).

Hope this is useful,
Dirk


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mga_vid-2.6.26-2008-08-03-amd64.patch
Type: text/x-diff
Size: 1224 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-matrox/attachments/20080901/f6591e80/attachment.patch>


More information about the MPlayer-matrox mailing list