[MPlayer-dev-eng] Minor quirk for Kernel 2.6.6 in ldt_keeper.c

Ingo Krabbe i.krabbe at dokom.net
Wed May 26 17:42:31 CEST 2004


Diego Biurrun wrote:

>Ingo Krabbe writes:
>  
>
>>seems to be a version quirk in loader/ldt_keeper.c
>>
>>---- lines 27ff
>>// 2.5.xx+ calls this user_desc:
>>#include <linux/version.h>
>>#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,47)
>>#define modify_ldt_ldt_s user_desc
>>#endif
>>
>>It looks as if kernel 2.6 calls this modify_ldt_ldt_s again.
>>
>>so you might should change
>>
>>if ( (LINUX_VERSION_CODE>=KERNEL_VERSION(2,5,47)) &&
>>      LINUX_VERSION_CODE<KERNEL_VERSION(2,6,6)) )
>>
>>I don't know the exact kernel version this has been changed back.  It is 
>>likely that this change has come into affect with Kernel 2.6.0.
>>    
>>
>
>Could you try to verify when this changed?  The best solution would
>probably be to drop the check entirely, especially if it is 2.6.0.
>
>Diego
>
>_______________________________________________
>MPlayer-dev-eng mailing list
>MPlayer-dev-eng at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
>
>  
>
Ahh sorry another quick shot, no it is still "struct user_desc".

I was wrong since my asm include files come from a strange system 
configuration doing a complete asm copy.  Somehow this is needed with 
this kernel.  I'm not quite sure what really happened to the include 
files of if they are sane again ....

Anyway, the code seems ok.... sorry.   This might be a wise thing for a 
configure check, if user_desc is defined in asm/ldt.h ...





More information about the MPlayer-dev-eng mailing list