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
2b6e32f3
Commit
2b6e32f3
authored
Jun 14, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't define stdcall functions on non-i386.
parent
c908ad6f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
12 deletions
+17
-12
exception.c
dlls/ntdll/exception.c
+7
-2
signal_arm.c
dlls/ntdll/signal_arm.c
+4
-4
signal_arm64.c
dlls/ntdll/signal_arm64.c
+4
-4
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+2
-2
No files found.
dlls/ntdll/exception.c
View file @
2b6e32f3
...
...
@@ -670,7 +670,6 @@ BOOL WINAPI IsBadStringPtrA( LPCSTR str, UINT_PTR max )
__ENDTRY
return
FALSE
;
}
__ASM_STDCALL_IMPORT
(
IsBadStringPtrA
,
8
)
/*************************************************************
* IsBadStringPtrW
...
...
@@ -692,8 +691,14 @@ BOOL WINAPI IsBadStringPtrW( LPCWSTR str, UINT_PTR max )
__ENDTRY
return
FALSE
;
}
__ASM_STDCALL_IMPORT
(
IsBadStringPtrW
,
8
)
#ifdef __i386__
__ASM_STDCALL_IMPORT
(
IsBadStringPtrA
,
8
)
__ASM_STDCALL_IMPORT
(
IsBadStringPtrW
,
8
)
#else
__ASM_GLOBAL_IMPORT
(
IsBadStringPtrA
)
__ASM_GLOBAL_IMPORT
(
IsBadStringPtrW
)
#endif
/**********************************************************************
* RtlGetEnabledExtendedFeatures (NTDLL.@)
...
...
dlls/ntdll/signal_arm.c
View file @
2b6e32f3
...
...
@@ -103,7 +103,7 @@ __ASM_GLOBAL_FUNC( __chkstk, "lsl r4, r4, #2\n\t"
/***********************************************************************
* RtlCaptureContext (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
RtlCaptureContext
,
4
,
__ASM_
GLOBAL_FUNC
(
RtlCaptureContext
,
"str r1, [r0, #0x8]
\n\t
"
/* context->R1 */
"mov r1, #0x0200000
\n\t
"
/* CONTEXT_ARM */
"add r1, r1, #0x7
\n\t
"
/* CONTEXT_CONTROL|CONTEXT_INTEGER|CONTEXT_FLOATING_POINT */
...
...
@@ -1451,7 +1451,7 @@ EXCEPTION_DISPOSITION WINAPI __C_specific_handler( EXCEPTION_RECORD *rec,
/***********************************************************************
* RtlRaiseException (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
RtlRaiseException
,
4
,
__ASM_
GLOBAL_FUNC
(
RtlRaiseException
,
"push {r0, lr}
\n\t
"
__ASM_EHABI
(
".save {r0, lr}
\n\t
"
)
__ASM_SEH
(
".seh_save_regs {r0, lr}
\n\t
"
)
...
...
@@ -1498,11 +1498,11 @@ __ASM_GLOBAL_FUNC( signal_start_thread,
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
DbgBreakPoint
,
0
,
"udf #0xfe; bx lr; nop; nop; nop; nop"
);
__ASM_
GLOBAL_FUNC
(
DbgBreakPoint
,
"udf #0xfe; bx lr; nop; nop; nop; nop"
);
/**********************************************************************
* DbgUserBreakPoint (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
DbgUserBreakPoint
,
0
,
"udf #0xfe; bx lr; nop; nop; nop; nop"
);
__ASM_
GLOBAL_FUNC
(
DbgUserBreakPoint
,
"udf #0xfe; bx lr; nop; nop; nop; nop"
);
#endif
/* __arm__ */
dlls/ntdll/signal_arm64.c
View file @
2b6e32f3
...
...
@@ -110,7 +110,7 @@ __ASM_GLOBAL_FUNC( __chkstk, "ret")
/***********************************************************************
* RtlCaptureContext (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
RtlCaptureContext
,
8
,
__ASM_
GLOBAL_FUNC
(
RtlCaptureContext
,
"str xzr, [x0, #0x8]
\n\t
"
/* context->X0 */
"stp x1, x2, [x0, #0x10]
\n\t
"
/* context->X1,X2 */
"stp x3, x4, [x0, #0x20]
\n\t
"
/* context->X3,X4 */
...
...
@@ -1489,7 +1489,7 @@ EXCEPTION_DISPOSITION WINAPI __C_specific_handler( EXCEPTION_RECORD *rec,
/***********************************************************************
* RtlRaiseException (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
RtlRaiseException
,
4
,
__ASM_
GLOBAL_FUNC
(
RtlRaiseException
,
"sub sp, sp, #0x3b0
\n\t
"
/* 0x390 (context) + 0x20 */
"stp x29, x30, [sp]
\n\t
"
__ASM_SEH
(
".seh_stackalloc 0x3b0
\n\t
"
)
...
...
@@ -1535,14 +1535,14 @@ __ASM_GLOBAL_FUNC( signal_start_thread,
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
DbgBreakPoint
,
0
,
"brk #0xf000; ret"
__ASM_
GLOBAL_FUNC
(
DbgBreakPoint
,
"brk #0xf000; ret"
"
\n\t
nop; nop; nop; nop; nop; nop; nop; nop"
"
\n\t
nop; nop; nop; nop; nop; nop"
);
/**********************************************************************
* DbgUserBreakPoint (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
DbgUserBreakPoint
,
0
,
"brk #0xf000; ret"
__ASM_
GLOBAL_FUNC
(
DbgUserBreakPoint
,
"brk #0xf000; ret"
"
\n\t
nop; nop; nop; nop; nop; nop; nop; nop"
"
\n\t
nop; nop; nop; nop; nop; nop"
);
...
...
dlls/ntdll/signal_x86_64.c
View file @
2b6e32f3
...
...
@@ -1614,14 +1614,14 @@ __ASM_GLOBAL_FUNC( signal_start_thread,
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
DbgBreakPoint
,
0
,
"int $3; ret"
__ASM_
GLOBAL_FUNC
(
DbgBreakPoint
,
"int $3; ret"
"
\n\t
nop; nop; nop; nop; nop; nop; nop; nop"
"
\n\t
nop; nop; nop; nop; nop; nop"
);
/**********************************************************************
* DbgUserBreakPoint (NTDLL.@)
*/
__ASM_
STDCALL_FUNC
(
DbgUserBreakPoint
,
0
,
"int $3; ret"
__ASM_
GLOBAL_FUNC
(
DbgUserBreakPoint
,
"int $3; ret"
"
\n\t
nop; nop; nop; nop; nop; nop; nop; nop"
"
\n\t
nop; nop; nop; nop; nop; nop"
);
...
...
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