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
383879f6
Commit
383879f6
authored
May 07, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add an x86_64 implementation for the TEB access functions.
parent
18dbaadf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
thread.c
dlls/kernel32/thread.c
+33
-1
No files found.
dlls/kernel32/thread.c
View file @
383879f6
...
...
@@ -602,7 +602,39 @@ __ASM_STDCALL_FUNC( GetCurrentThreadId, 0, ".byte 0x64\n\tmovl 0x24,%eax\n\tret"
/* HANDLE WINAPI GetProcessHeap(void) */
__ASM_STDCALL_FUNC
(
GetProcessHeap
,
0
,
".byte 0x64
\n\t
movl 0x30,%eax
\n\t
movl 0x18(%eax),%eax
\n\t
ret"
);
#else
/* __i386__ */
#elif defined(__x86_64__)
/***********************************************************************
* SetLastError (KERNEL32.@)
*/
/* void WINAPI SetLastError( DWORD error ); */
__ASM_STDCALL_FUNC
(
SetLastError
,
8
,
".byte 0x65
\n\t
movl %ecx,0x68
\n\t
ret"
);
/***********************************************************************
* GetLastError (KERNEL32.@)
*/
/* DWORD WINAPI GetLastError(void); */
__ASM_STDCALL_FUNC
(
GetLastError
,
0
,
".byte 0x65
\n\t
movl 0x68,%eax
\n\t
ret"
);
/***********************************************************************
* GetCurrentProcessId (KERNEL32.@)
*/
/* DWORD WINAPI GetCurrentProcessId(void) */
__ASM_STDCALL_FUNC
(
GetCurrentProcessId
,
0
,
".byte 0x65
\n\t
movl 0x40,%eax
\n\t
ret"
);
/***********************************************************************
* GetCurrentThreadId (KERNEL32.@)
*/
/* DWORD WINAPI GetCurrentThreadId(void) */
__ASM_STDCALL_FUNC
(
GetCurrentThreadId
,
0
,
".byte 0x65
\n\t
movl 0x48,%eax
\n\t
ret"
);
/***********************************************************************
* GetProcessHeap (KERNEL32.@)
*/
/* HANDLE WINAPI GetProcessHeap(void) */
__ASM_STDCALL_FUNC
(
GetProcessHeap
,
0
,
".byte 0x65
\n\t
movq 0x60,%rax
\n\t
movq 0x30(%rax),%rax
\n\t
ret"
);
#else
/* __x86_64__ */
/**********************************************************************
* SetLastError (KERNEL32.@)
...
...
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