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
24561498
Commit
24561498
authored
Aug 20, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 20, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use r2 instead of r13 for TLS, since r13 is used in the ELF32 PPC
ABI.
parent
4d54db75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
winnt.h
include/winnt.h
+1
-1
sysdeps.c
scheduler/sysdeps.c
+2
-2
No files found.
include/winnt.h
View file @
24561498
...
@@ -2332,7 +2332,7 @@ extern inline struct _TEB * WINAPI NtCurrentTeb(void);
...
@@ -2332,7 +2332,7 @@ extern inline struct _TEB * WINAPI NtCurrentTeb(void);
extern
inline
struct
_TEB
*
WINAPI
NtCurrentTeb
(
void
)
extern
inline
struct
_TEB
*
WINAPI
NtCurrentTeb
(
void
)
{
{
struct
_TEB
*
teb
;
struct
_TEB
*
teb
;
__asm__
(
"
\t
mr %0,
13
"
:
"=r"
(
teb
));
__asm__
(
"
\t
mr %0,
2
"
:
"=r"
(
teb
));
return
teb
;
return
teb
;
}
}
#else
#else
...
...
scheduler/sysdeps.c
View file @
24561498
...
@@ -91,7 +91,7 @@ void SYSDEPS_SetCurThread( TEB *teb )
...
@@ -91,7 +91,7 @@ void SYSDEPS_SetCurThread( TEB *teb )
wine_set_fs
(
teb
->
teb_sel
);
wine_set_fs
(
teb
->
teb_sel
);
#elif defined(__powerpc__)
#elif defined(__powerpc__)
/* On PowerPC, the current TEB is in the gpr13 register */
/* On PowerPC, the current TEB is in the gpr13 register */
__asm__
__volatile__
(
"mr
13
, %0"
:
:
"r"
(
teb
));
__asm__
__volatile__
(
"mr
2
, %0"
:
:
"r"
(
teb
));
#elif defined(HAVE__LWP_CREATE)
#elif defined(HAVE__LWP_CREATE)
/* On non-i386 Solaris, we use the LWP private pointer */
/* On non-i386 Solaris, we use the LWP private pointer */
_lwp_setprivate
(
teb
);
_lwp_setprivate
(
teb
);
...
@@ -343,7 +343,7 @@ struct _TEB * WINAPI NtCurrentTeb(void)
...
@@ -343,7 +343,7 @@ struct _TEB * WINAPI NtCurrentTeb(void)
return
(
struct
_TEB
*
)
_lwp_getprivate
();
return
(
struct
_TEB
*
)
_lwp_getprivate
();
}
}
#elif defined(__powerpc__)
#elif defined(__powerpc__)
__ASM_GLOBAL_FUNC
(
NtCurrentTeb
,
"
\n\t
mr 3,
13
\n\t
blr"
);
__ASM_GLOBAL_FUNC
(
NtCurrentTeb
,
"
\n\t
mr 3,
2
\n\t
blr"
);
#else
#else
# error NtCurrentTeb not defined for this architecture
# error NtCurrentTeb not defined for this architecture
#endif
/* __i386__ */
#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