mirror of https://github.com/mpv-player/mpv
Make MTRR setup work on AMD64 and simplify some #ifdefs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16378 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
32f8f95be7
commit
58f9937953
|
@ -23,7 +23,6 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined( __i386__ )
|
|
||||||
int mtrr_set_type(unsigned base,unsigned size,int type)
|
int mtrr_set_type(unsigned base,unsigned size,int type)
|
||||||
{
|
{
|
||||||
#ifdef linux
|
#ifdef linux
|
||||||
|
@ -50,8 +49,7 @@ int mtrr_set_type(unsigned base,unsigned size,int type)
|
||||||
return wr_len == strlen(sout) ? 0 : EPERM;
|
return wr_len == strlen(sout) ? 0 : EPERM;
|
||||||
}
|
}
|
||||||
return ENOSYS;
|
return ENOSYS;
|
||||||
#elif defined (__NetBSD__)
|
#elif defined (__i386__ ) && defined (__NetBSD__) && __NetBSD_Version__ > 105240000
|
||||||
#if __NetBSD_Version__ > 105240000
|
|
||||||
struct mtrr *mtrrp;
|
struct mtrr *mtrrp;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
|
@ -72,14 +70,4 @@ int mtrr_set_type(unsigned base,unsigned size,int type)
|
||||||
/* NetBSD prior to 1.5Y doesn't have MTRR support */
|
/* NetBSD prior to 1.5Y doesn't have MTRR support */
|
||||||
return ENOSYS;
|
return ENOSYS;
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
#warning Please port MTRR stuff!!!
|
|
||||||
return ENOSYS;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
int mtrr_set_type(unsigned base,unsigned size,int type)
|
|
||||||
{
|
|
||||||
return ENOSYS;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue