summarylogtreecommitdiffstats
path: root/asm.patch
diff options
context:
space:
mode:
authorJanez Zemva2017-09-04 21:03:29 +0200
committerJanez Zemva2017-09-04 21:03:29 +0200
commit12760a3c06c4e6945ee0cb74834d1cfb2acbbb9e (patch)
tree29301344d03855c151be458ed08367b4f68654c4 /asm.patch
downloadaur-12760a3c06c4e6945ee0cb74834d1cfb2acbbb9e.tar.gz
initial commit
Diffstat (limited to 'asm.patch')
-rw-r--r--asm.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/asm.patch b/asm.patch
new file mode 100644
index 000000000000..efb3d7b9dcf4
--- /dev/null
+++ b/asm.patch
@@ -0,0 +1,11 @@
+--- src/libc/go32/dpmiexcp.c
++++ src/libc/go32/dpmiexcp.c
+@@ -197,7 +197,7 @@
+
+ /* check video mode for original here and reset (not if PC98) */
+ if(ScreenPrimary != 0xa0000 && _farpeekb(_dos_ds, 0x449) != old_video_mode) {
+- asm volatile ("pusha;movzbl _old_video_mode,%eax; int $0x10;popa;nop");
++ asm volatile ("pusha; int $0x10; popa; nop" : : "a" ((__UINT32_TYPE__)old_video_mode));
+ }
+ en = (signum >= EXCEPTION_COUNT) ? 0 :
+ exception_names[signum];