Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
41670d3e
Commit
41670d3e
authored
Jul 16, 2003
by
Pierre d'Herbemont
Committed by
Alexandre Julliard
Jul 16, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for the TEB on Mac OS X.
parent
08cc0d1c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
sysdeps.c
dlls/ntdll/sysdeps.c
+8
-0
No files found.
dlls/ntdll/sysdeps.c
View file @
41670d3e
...
...
@@ -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\t
mr r3,r13
\n\t
blr"
);
# else
__ASM_GLOBAL_FUNC
(
NtCurrentTeb
,
"
\n\t
mr 3,2
\n\t
blr"
);
# endif
#else
# error NtCurrentTeb not defined for this architecture
#endif
/* __i386__ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment