Changeset 21731 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/libWine
- Timestamp:
- Jul 21, 2009 9:16:52 AM (15 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine/libWine
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/libWine/cpmap.pl
r19678 r21731 18 18 # License along with this library; if not, write to the Free Software 19 19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 20 # 21 22 # 23 # Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice 24 # other than GPL or LGPL is available it will apply instead, Sun elects to use only 25 # the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where 26 # a choice of LGPL license versions is made available with the language indicating 27 # that LGPLv2 or any later version may be used, or where a choice of which version 28 # of the LGPL is applied is otherwise unspecified. 20 29 # 21 30 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/libWine/defaults
r19678 r21731 34 34 # are handled automatically and do not have to be defined here. They can 35 35 # still be defined if necessary to override the unicode decomposition. 36 # 37 38 # 39 # Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice 40 # other than GPL or LGPL is available it will apply instead, Sun elects to use only 41 # the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where 42 # a choice of LGPL license versions is made available with the language indicating 43 # that LGPLv2 or any later version may be used, or where a choice of which version 44 # of the LGPL is applied is otherwise unspecified. 36 45 # 37 46 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/libWine/port.c
r20612 r21731 36 36 37 37 #include "wine/library.h" 38 #include "wine/pthread.h"39 38 40 static struct wine_pthread_functions pthread_functions; 39 /* no longer used, for backwards compatibility only */ 40 struct wine_pthread_functions; 41 static void *pthread_functions[8]; 41 42 42 43 /*********************************************************************** … … 63 64 * Switch to the specified stack and call the function. 64 65 */ 65 void DECLSPEC_NORETURN wine_switch_to_stack( void (*func)(void *), void *arg, void *stack ); 66 #if defined(__i386__) && defined(__GNUC__) 67 __ASM_GLOBAL_FUNC( wine_switch_to_stack, 68 "movl 4(%esp),%ecx\n\t" /* func */ 69 "movl 8(%esp),%edx\n\t" /* arg */ 70 "movl 12(%esp),%esp\n\t" /* stack */ 71 "andl $~15,%esp\n\t" 72 "subl $12,%esp\n\t" 73 "pushl %edx\n\t" 74 "xorl %ebp,%ebp\n\t" 75 "call *%ecx\n\t" 76 "int $3" /* we never return here */ ) 77 #elif defined(__i386__) && defined(_MSC_VER) 78 __declspec(naked) void wine_switch_to_stack( void (*func)(void *), void *arg, void *stack ) 79 { 80 __asm mov ecx, 4[esp]; 81 __asm mov edx, 8[esp]; 82 __asm mov esp, 12[esp]; 83 __asm push edx; 84 __asm xor ebp, ebp; 85 __asm call [ecx]; 86 __asm int 3; 87 } 88 #elif defined(__sparc__) && defined(__GNUC__) 66 #if defined(__sparc__) && defined(__GNUC__) 89 67 __ASM_GLOBAL_FUNC( wine_switch_to_stack, 90 68 "mov %o0, %l0\n\t" /* store first argument */ … … 102 80 "bctrl\n" /* call ctr */ 103 81 "1:\tb 1b") /* loop */ 104 #elif defined(__powerpc__) && defined(__GNUC__)105 __ASM_GLOBAL_FUNC( wine_switch_to_stack,106 "mtctr 3\n\t" /* func -> ctr */107 "mr 3,4\n\t" /* args -> function param 1 (r3) */108 "mr 1,5\n\t" /* stack */109 "subi 1, 1, 16\n\t" /* allocate space for the callee */110 "li 0, 0\n\t" /* load zero */111 "stw 0, 0(1)\n\t" /* create a bottom stack frame */112 "bctrl\n\t" /* call ctr */113 "1:\tb 1b") /* loop */114 82 #elif defined(__ALPHA__) && defined(__GNUC__) 115 83 __ASM_GLOBAL_FUNC( wine_switch_to_stack, … … 119 87 "jsr $31,($0),0\n\t" /* call func */ 120 88 "L1:\tbr $31,L1") /* loop */ 121 #elif defined(__x86_64__) && defined(__GNUC__)122 __ASM_GLOBAL_FUNC( wine_switch_to_stack,123 "movq %rdi,%rax\n\t" /* func */124 "movq %rsi,%rdi\n\t" /* arg */125 "andq $~15,%rdx\n\t" /* stack */126 "movq %rdx,%rsp\n\t"127 "xorq %rbp,%rbp\n\t"128 "callq *%rax\n\t" /* call func */129 "int $3")130 89 #else 131 90 void DECLSPEC_NORETURN wine_switch_to_stack( void (*func)(void *), void *arg, void *stack ) … … 146 105 __ASM_GLOBAL_FUNC( wine_call_on_stack, 147 106 "pushl %ebp\n\t" 107 __ASM_CFI(".cfi_adjust_cfa_offset 4\n\t") 108 __ASM_CFI(".cfi_rel_offset %ebp,0\n\t") 148 109 "pushl %esi\n\t" 110 __ASM_CFI(".cfi_adjust_cfa_offset 4\n\t") 111 __ASM_CFI(".cfi_rel_offset %esi,0\n\t") 112 "movl %esp,%esi\n\t" 113 __ASM_CFI(".cfi_def_cfa_register %esi\n\t") 149 114 "movl 12(%esp),%ecx\n\t" /* func */ 150 115 "movl 16(%esp),%edx\n\t" /* arg */ 151 "movl 20(%esp),%e si\n\t" /* stack */152 "andl $~15,%e si\n\t"153 "subl $12,%e si\n\t"154 " xchgl %esi,%esp\n\t"116 "movl 20(%esp),%eax\n\t" /* stack */ 117 "andl $~15,%eax\n\t" 118 "subl $12,%eax\n\t" 119 "movl %eax,%esp\n\t" 155 120 "pushl %edx\n\t" 156 121 "xorl %ebp,%ebp\n\t" … … 158 123 "movl %esi,%esp\n\t" 159 124 "popl %esi\n\t" 125 __ASM_CFI(".cfi_adjust_cfa_offset -4\n\t") 126 __ASM_CFI(".cfi_same_value %esi\n\t") 160 127 "popl %ebp\n\t" 128 __ASM_CFI(".cfi_def_cfa %esp,4\n\t") 129 __ASM_CFI(".cfi_same_value %ebp\n\t") 161 130 "ret" ) 162 131 #elif defined(__i386__) && defined(_MSC_VER) … … 180 149 __ASM_GLOBAL_FUNC( wine_call_on_stack, 181 150 "pushq %rbp\n\t" 182 "pushq %rbx\n\t" 183 "movq %rsp,%rbx\n\t" 151 ".cfi_adjust_cfa_offset 8\n\t" 152 ".cfi_rel_offset %rbp,0\n\t" 153 "movq %rsp,%rbp\n\t" 154 ".cfi_def_cfa_register %rbp\n\t" 184 155 "movq %rdi,%rax\n\t" /* func */ 185 156 "movq %rsi,%rdi\n\t" /* arg */ 186 157 "andq $~15,%rdx\n\t" /* stack */ 187 158 "movq %rdx,%rsp\n\t" 188 "xorq %rbp,%rbp\n\t"189 159 "callq *%rax\n\t" /* call func */ 190 "movq %rb x,%rsp\n\t"191 " popq %rbx\n\t"160 "movq %rbp,%rsp\n\t" 161 ".cfi_def_cfa_register %rsp\n\t" 192 162 "popq %rbp\n\t" 163 ".cfi_adjust_cfa_offset -8\n\t" 164 ".cfi_same_value %rbp\n\t" 193 165 "ret") 194 166 #elif defined(__powerpc__) && defined(__GNUC__) -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/libWine/version.c
r20612 r21731 1 const char wine_build[] = "wine-1.1.2 3";1 const char wine_build[] = "wine-1.1.26";
Note:
See TracChangeset
for help on using the changeset viewer.