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
c908ad6f
Commit
c908ad6f
authored
Jun 14, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Don't define stdcall functions on non-i386.
parent
766448f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
debug.c
dlls/kernelbase/debug.c
+8
-1
thread.c
dlls/kernelbase/thread.c
+3
-3
No files found.
dlls/kernelbase/debug.c
View file @
c908ad6f
...
...
@@ -118,8 +118,10 @@ BOOL WINAPI DECLSPEC_HOTPATCH DebugActiveProcessStop( DWORD pid )
/***********************************************************************
* DebugBreak (kernelbase.@)
*/
#if
defined(__i386__) || defined(__x86_64__)
#if
def __i386__
__ASM_STDCALL_FUNC
(
DebugBreak
,
0
,
"jmp "
__ASM_STDCALL
(
"DbgBreakPoint"
,
0
)
)
#elif defined(__x86_64__)
__ASM_GLOBAL_FUNC
(
DebugBreak
,
"jmp "
__ASM_NAME
(
"DbgBreakPoint"
)
)
#else
void
WINAPI
DebugBreak
(
void
)
{
...
...
@@ -347,7 +349,12 @@ void WINAPI DECLSPEC_HOTPATCH RaiseException( DWORD code, DWORD flags, DWORD cou
RtlRaiseException
(
&
record
);
}
#endif
#ifdef __i386__
__ASM_STDCALL_IMPORT
(
RaiseException
,
16
)
#else
__ASM_GLOBAL_IMPORT
(
RaiseException
)
#endif
/*******************************************************************
* RaiseFailFastException (kernelbase.@)
...
...
dlls/kernelbase/thread.c
View file @
c908ad6f
...
...
@@ -807,7 +807,7 @@ __ASM_STDCALL_FUNC( switch_fiber, 8,
"movl 0xc4(%ecx),%esp
\n\t
"
/* new->Esp */
"jmp *0xb8(%ecx)"
)
/* new->Eip */
#elif defined(__x86_64__)
__ASM_
STDCALL_FUNC
(
switch_fiber
,
8
,
__ASM_
GLOBAL_FUNC
(
switch_fiber
,
"movq %rbx,0x90(%rcx)
\n\t
"
/* old->Rbx */
"leaq 0x8(%rsp),%rax
\n\t
"
"movq %rax,0x98(%rcx)
\n\t
"
/* old->Rsp */
...
...
@@ -851,7 +851,7 @@ __ASM_STDCALL_FUNC( switch_fiber, 8,
"movq 0x98(%rdx),%rsp
\n\t
"
/* new->Rsp */
"jmp *0xf8(%rdx)"
)
/* new->Rip */
#elif defined(__arm__)
__ASM_
STDCALL_FUNC
(
switch_fiber
,
8
,
__ASM_
GLOBAL_FUNC
(
switch_fiber
,
"str r4, [r0, #0x14]
\n\t
"
/* old->R4 */
"str r5, [r0, #0x18]
\n\t
"
/* old->R5 */
"str r6, [r0, #0x1c]
\n\t
"
/* old->R6 */
...
...
@@ -874,7 +874,7 @@ __ASM_STDCALL_FUNC( switch_fiber, 8,
"ldr r2, [r1, #0x40]
\n\t
"
/* new->Pc */
"bx r2"
)
#elif defined(__aarch64__)
__ASM_
STDCALL_FUNC
(
switch_fiber
,
8
,
__ASM_
GLOBAL_FUNC
(
switch_fiber
,
"stp x19, x20, [x0, #0xa0]
\n\t
"
/* old->X19,X20 */
"stp x21, x22, [x0, #0xb0]
\n\t
"
/* old->X21,X22 */
"stp x23, x24, [x0, #0xc0]
\n\t
"
/* old->X23,X24 */
...
...
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