mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-18 09:57:34 +00:00
Added support for the TEB on Mac OS X.
This commit is contained in:
parent
08cc0d1c73
commit
41670d3ed7
|
@ -90,7 +90,11 @@ void SYSDEPS_SetCurThread( TEB *teb )
|
|||
wine_ldt_init_fs( teb->teb_sel, &fs_entry );
|
||||
#elif defined(__powerpc__)
|
||||
/* On PowerPC, the current TEB is in the gpr13 register */
|
||||
# ifdef __APPLE__
|
||||
__asm__ __volatile__("mr r13, %0" : : "r" (teb));
|
||||
# else
|
||||
__asm__ __volatile__("mr 2, %0" : : "r" (teb));
|
||||
# endif
|
||||
#elif defined(HAVE__LWP_CREATE)
|
||||
/* On non-i386 Solaris, we use the LWP private pointer */
|
||||
_lwp_setprivate( teb );
|
||||
|
@ -437,7 +441,11 @@ struct _TEB * WINAPI NtCurrentTeb(void)
|
|||
return (struct _TEB *)_lwp_getprivate();
|
||||
}
|
||||
#elif defined(__powerpc__)
|
||||
# ifdef __APPLE__
|
||||
__ASM_GLOBAL_FUNC( NtCurrentTeb, "\n\tmr r3,r13\n\tblr" );
|
||||
# else
|
||||
__ASM_GLOBAL_FUNC( NtCurrentTeb, "\n\tmr 3,2\n\tblr" );
|
||||
# endif
|
||||
#else
|
||||
# error NtCurrentTeb not defined for this architecture
|
||||
#endif /* __i386__ */
|
||||
|
|
Loading…
Reference in a new issue