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
db923057
Commit
db923057
authored
Jul 24, 2001
by
Patrik Stridvall
Committed by
Alexandre Julliard
Jul 24, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation fixes.
parent
4b157457
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
7 deletions
+25
-7
dcvalues.c
objects/dcvalues.c
+0
-0
critsection.c
scheduler/critsection.c
+6
-7
sysdeps.c
scheduler/sysdeps.c
+3
-0
thread.c
scheduler/thread.c
+16
-0
No files found.
objects/dcvalues.c
View file @
db923057
This diff is collapsed.
Click to expand it.
scheduler/critsection.c
View file @
db923057
...
...
@@ -85,9 +85,9 @@ void WINAPI UninitializeCriticalSection( CRITICAL_SECTION *crit )
#ifdef __i386__
/***********************************************************************
* InterlockCompareExchange (KERNEL32.@)
* Interlock
ed
CompareExchange (KERNEL32.@)
*/
PVOID
WINAPI
InterlockedCompareExchange
(
PVOID
*
dest
,
PVOID
xchg
,
PVOID
compare
);
/* PVOID WINAPI InterlockedCompareExchange( PVOID *dest, PVOID xchg, PVOID compare ); */
__ASM_GLOBAL_FUNC
(
InterlockedCompareExchange
,
"movl 12(%esp),%eax
\n\t
"
"movl 8(%esp),%ecx
\n\t
"
...
...
@@ -98,7 +98,7 @@ __ASM_GLOBAL_FUNC(InterlockedCompareExchange,
/***********************************************************************
* InterlockedExchange (KERNEL32.@)
*/
LONG
WINAPI
InterlockedExchange
(
PLONG
dest
,
LONG
val
);
/* LONG WINAPI InterlockedExchange( PLONG dest, LONG val ); */
__ASM_GLOBAL_FUNC
(
InterlockedExchange
,
"movl 8(%esp),%eax
\n\t
"
"movl 4(%esp),%edx
\n\t
"
...
...
@@ -108,7 +108,7 @@ __ASM_GLOBAL_FUNC(InterlockedExchange,
/***********************************************************************
* InterlockedExchangeAdd (KERNEL32.@)
*/
LONG
WINAPI
InterlockedExchangeAdd
(
PLONG
dest
,
LONG
incr
);
/* LONG WINAPI InterlockedExchangeAdd( PLONG dest, LONG incr ); */
__ASM_GLOBAL_FUNC
(
InterlockedExchangeAdd
,
"movl 8(%esp),%eax
\n\t
"
"movl 4(%esp),%edx
\n\t
"
...
...
@@ -118,7 +118,7 @@ __ASM_GLOBAL_FUNC(InterlockedExchangeAdd,
/***********************************************************************
* InterlockedIncrement (KERNEL32.@)
*/
LONG
WINAPI
InterlockedIncrement
(
PLONG
dest
);
/* LONG WINAPI InterlockedIncrement( PLONG dest ); */
__ASM_GLOBAL_FUNC
(
InterlockedIncrement
,
"movl 4(%esp),%edx
\n\t
"
"movl $1,%eax
\n\t
"
...
...
@@ -127,9 +127,8 @@ __ASM_GLOBAL_FUNC(InterlockedIncrement,
"ret $4"
);
/***********************************************************************
* InterlockDecrement (KERNEL32.@)
* Interlock
ed
Decrement (KERNEL32.@)
*/
LONG
WINAPI
InterlockedDecrement
(
PLONG
dest
);
__ASM_GLOBAL_FUNC
(
InterlockedDecrement
,
"movl 4(%esp),%edx
\n\t
"
"movl $-1,%eax
\n\t
"
...
...
scheduler/sysdeps.c
View file @
db923057
...
...
@@ -245,6 +245,9 @@ void SYSDEPS_SwitchToThreadStack( void (*func)(void) )
#ifdef __i386__
__ASM_GLOBAL_FUNC
(
NtCurrentTeb
,
".byte 0x64
\n\t
movl 0x18,%eax
\n\t
ret"
);
#elif defined(HAVE__LWP_CREATE)
/***********************************************************************
* NtCurrentTeb (NTDLL.@)
*/
struct
_TEB
*
WINAPI
NtCurrentTeb
(
void
)
{
extern
void
*
_lwp_getprivate
(
void
);
...
...
scheduler/thread.c
View file @
db923057
...
...
@@ -765,6 +765,10 @@ EXECUTION_STATE WINAPI SetThreadExecutionState(EXECUTION_STATE flags)
#ifdef __i386__
/***********************************************************************
* SetLastError (KERNEL.147)
* SetLastError (KERNEL32.@)
*/
/* void WINAPI SetLastError( DWORD error ); */
__ASM_GLOBAL_FUNC
(
SetLastError
,
"movl 4(%esp),%eax
\n\t
"
...
...
@@ -772,12 +776,24 @@ __ASM_GLOBAL_FUNC( SetLastError,
"movl %eax,0x60
\n\t
"
"ret $4"
);
/***********************************************************************
* GetLastError (KERNEL.148)
* GetLastError (KERNEL32.@)
*/
/* DWORD WINAPI GetLastError(void); */
__ASM_GLOBAL_FUNC
(
GetLastError
,
".byte 0x64
\n\t
movl 0x60,%eax
\n\t
ret"
);
/***********************************************************************
* GetCurrentProcessId (KERNEL.471)
* GetCurrentProcessId (KERNEL32.@)
*/
/* DWORD WINAPI GetCurrentProcessId(void) */
__ASM_GLOBAL_FUNC
(
GetCurrentProcessId
,
".byte 0x64
\n\t
movl 0x20,%eax
\n\t
ret"
);
/***********************************************************************
* GetCurrentThreadId (KERNEL.462)
* GetCurrentThreadId (KERNEL32.@)
*/
/* DWORD WINAPI GetCurrentThreadId(void) */
__ASM_GLOBAL_FUNC
(
GetCurrentThreadId
,
".byte 0x64
\n\t
movl 0x24,%eax
\n\t
ret"
);
...
...
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