aboutsummaryrefslogtreecommitdiffstats
path: root/java/tya/files/patch-tya.c
blob: b35aaf48265982ae03cbaac49eb64e6ea12ef476 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- ./tya.c.orig    Tue Jul  9 20:28:10 2002
+++ ./tya.c Tue Oct 28 00:44:51 2003
@@ -786,7 +786,7 @@
 unsigned long  oldesp asm("anOldsp");
 unsigned long  oldebp asm("anOldbp");
 unsigned long  jumpTo asm("aJumpTo");
-#endif EXCEPTIONS_BY_SIGNALS
+#endif /* EXCEPTIONS_BY_SIGNALS */
 
 #define NEWGETCONTEXT
 #define OFF116v5 4 // 0 for 114v4a
@@ -916,16 +916,16 @@
    
    // restore old ebp and esp, push old eip on stack for exception handler
    // and jump there
-   asm volatile( "
-   movl $anOldbp, %eax
-   movl (%eax), %ebp
-   movl $anOldsp, %eax
-   movl (%eax), %esp
-   movl $anOldip, %eax
-   movl (%eax),%eax
-   pushl %eax
-   movl $aJumpTo, %eax
-   movl (%eax), %eax
+   asm volatile( "\
+   movl $anOldbp, %eax\
+   movl (%eax), %ebp\
+   movl $anOldsp, %eax\
+   movl (%eax), %esp\
+   movl $anOldip, %eax\
+   movl (%eax),%eax\
+   pushl %eax\
+   movl $aJumpTo, %eax\
+   movl (%eax), %eax\
    jmp *%eax" );
 #endif // EXCEPTIONS_BY_SIGNALS
    return HOOKRETVAL;