summaryrefslogtreecommitdiff
path: root/user/mplayer/ldt.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-07 21:45:58 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-07 21:45:58 +0000
commit48fc3e1d497404db1b7e39b8e95f32dff65a3421 (patch)
tree6fee98398e6954776aeb76d67514851aa3c4e8bc /user/mplayer/ldt.patch
parent7fffafdd3a49caacab7d1391cdf420c2bd4887a6 (diff)
downloadpackages-48fc3e1d497404db1b7e39b8e95f32dff65a3421.tar.gz
packages-48fc3e1d497404db1b7e39b8e95f32dff65a3421.tar.bz2
packages-48fc3e1d497404db1b7e39b8e95f32dff65a3421.tar.xz
packages-48fc3e1d497404db1b7e39b8e95f32dff65a3421.zip
user/mplayer: unblock on pmmx
Diffstat (limited to 'user/mplayer/ldt.patch')
-rw-r--r--user/mplayer/ldt.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/mplayer/ldt.patch b/user/mplayer/ldt.patch
new file mode 100644
index 000000000..6ae5456bc
--- /dev/null
+++ b/user/mplayer/ldt.patch
@@ -0,0 +1,11 @@
+--- MPlayer-1.4/loader/ldt_keeper.c.old 2013-03-23 14:48:22.000000000 +0000
++++ MPlayer-1.4/loader/ldt_keeper.c 2020-07-06 21:22:30.344206427 +0000
+@@ -214,7 +214,7 @@
+ array.limit_in_pages=0;
+ #ifdef __linux__
+ //ret=LDT_Modify(0x1, &array, sizeof(struct modify_ldt_ldt_s));
+- ret=modify_ldt(0x1, &array, sizeof(struct modify_ldt_ldt_s));
++ ret=syscall(__NR_modify_ldt, 0x1, &array, sizeof(struct modify_ldt_ldt_s));
+ if(ret<0)
+ {
+ perror("install_fs");