mirror of
https://github.com/mpv-player/mpv
synced 2024-11-07 01:47:00 +01:00
Be more precise
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4496 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
104c125e6d
commit
77f4d19adf
@ -31,18 +31,23 @@ int mtrr_set_type(unsigned base,unsigned size,int type)
|
||||
mtrr_fd = fopen("/proc/mtrr","wt");
|
||||
if(mtrr_fd)
|
||||
{
|
||||
fprintf(mtrr_fd,"base=0x%08X size=0x%08X type=%s\n",base,size,stype);
|
||||
printf("base=0x%08X size=0x%08X type=%s\n",base,size,stype);
|
||||
char sout[256];
|
||||
unsigned wr_len;
|
||||
sprintf(sout,"base=0x%08X size=0x%08X type=%s\n",base,size,stype);
|
||||
wr_len = fprintf(mtrr_fd,sout);
|
||||
/*printf("MTRR: %s\n",sout);*/
|
||||
fclose(mtrr_fd);
|
||||
return 0;
|
||||
return wr_len == strlen(sout) ? 0 : EPERM;
|
||||
}
|
||||
return ENOSYS;
|
||||
#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
Block a user