[MPlayer-cvslog] CVS: main/libdha mtrr.c,1.6,1.7
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sat Sep 3 21:17:30 CEST 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libdha
In directory mail:/var2/tmp/cvs-serv27103/libdha
Modified Files:
mtrr.c
Log Message:
Make MTRR setup work on AMD64 and simplify some #ifdefs
Index: mtrr.c
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/mtrr.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mtrr.c 7 Jun 2002 22:43:25 -0000 1.6
+++ mtrr.c 3 Sep 2005 19:17:28 -0000 1.7
@@ -23,7 +23,6 @@
#endif
#endif
-#if defined( __i386__ )
int mtrr_set_type(unsigned base,unsigned size,int type)
{
#ifdef linux
@@ -50,8 +49,7 @@
return wr_len == strlen(sout) ? 0 : EPERM;
}
return ENOSYS;
-#elif defined (__NetBSD__)
-#if __NetBSD_Version__ > 105240000
+#elif defined (__i386__ ) && defined (__NetBSD__) && __NetBSD_Version__ > 105240000
struct mtrr *mtrrp;
int n;
@@ -72,14 +70,4 @@
/* NetBSD prior to 1.5Y doesn't have MTRR support */
return ENOSYS;
#endif
-#else
-#warning Please port MTRR stuff!!!
- return ENOSYS;
-#endif
}
-#else
-int mtrr_set_type(unsigned base,unsigned size,int type)
-{
- return ENOSYS;
-}
-#endif
More information about the MPlayer-cvslog
mailing list