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
b9e10147
Commit
b9e10147
authored
Dec 15, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: NtCurrentTeb is not exported on x86_64.
parent
a518edc3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-1
thread.c
dlls/ntdll/thread.c
+4
-0
winnt.h
include/winnt.h
+1
-1
No files found.
dlls/ntdll/ntdll.spec
View file @
b9e10147
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
@ stdcall NtCreateTimer(ptr long ptr long)
@ stdcall NtCreateTimer(ptr long ptr long)
@ stub NtCreateToken
@ stub NtCreateToken
# @ stub NtCreateWaitablePort
# @ stub NtCreateWaitablePort
@ stdcall NtCurrentTeb()
@ stdcall
-arch=i386,sparc,alpha,powerpc
NtCurrentTeb()
# @ stub NtDebugActiveProcess
# @ stub NtDebugActiveProcess
# @ stub NtDebugContinue
# @ stub NtDebugContinue
@ stdcall NtDelayExecution(long ptr)
@ stdcall NtDelayExecution(long ptr)
...
...
dlls/ntdll/thread.c
View file @
b9e10147
...
@@ -1465,6 +1465,10 @@ __ASM_GLOBAL_FUNC( NtCurrentTeb, ".byte 0x64\n\tmovl 0x18,%eax\n\tret" )
...
@@ -1465,6 +1465,10 @@ __ASM_GLOBAL_FUNC( NtCurrentTeb, ".byte 0x64\n\tmovl 0x18,%eax\n\tret" )
/* Nothing needs to be done. MS C "magically" exports the inline version from winnt.h */
/* Nothing needs to be done. MS C "magically" exports the inline version from winnt.h */
#elif defined(__x86_64__) && defined(__GNUC__)
/* not exported on x86_64 */
#else
#else
/**********************************************************************/
/**********************************************************************/
...
...
include/winnt.h
View file @
b9e10147
...
@@ -2261,7 +2261,7 @@ extern inline struct _TEB * WINAPI NtCurrentTeb(void)
...
@@ -2261,7 +2261,7 @@ extern inline struct _TEB * WINAPI NtCurrentTeb(void)
return
teb
;
return
teb
;
}
}
#elif defined(__x86_64__) && defined(__GNUC__)
#elif defined(__x86_64__) && defined(__GNUC__)
extern
inline
struct
_TEB
*
WINAPI
NtCurrentTeb
(
void
)
static
inline
struct
_TEB
*
WINAPI
NtCurrentTeb
(
void
)
{
{
struct
_TEB
*
teb
;
struct
_TEB
*
teb
;
__asm__
(
".byte 0x65
\n\t
movq (0x30),%0"
:
"=r"
(
teb
));
__asm__
(
".byte 0x65
\n\t
movq (0x30),%0"
:
"=r"
(
teb
));
...
...
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