summaryrefslogblamecommitdiff
path: root/user/dosbox/asmfix.patch
blob: db341e42c6545ae176792b6d8c799fb8dd0ff490 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                                           
--- dosbox-x-dosbox-x-wip-20180513-1316/src/cpu/core_dyn_x86/risc_x86.h	2018-05-13 19:52:17.000000000 +0000
+++ dosbox-x-dosbox-x-wip-20180513-1316/src/cpu/core_dyn_x86/risc_x86.h	2018-05-16 12:02:44.329617468 +0000
@@ -130,7 +130,7 @@
 #else
 	register Bit32u tempflags=reg_flags & FMASK_TEST;
 	__asm__ volatile (
-		"pushl $(run_return_adress)					\n"
+		"call 1f ; 1: addl $run_return_adress-.,(%%esp)			\n"
 		"pushl  %2							\n"
 		"jmp  *%3							\n"
 		"run_return_adress:						\n"