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
59485f00
Commit
59485f00
authored
Nov 15, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove DECLSPEC_HIDDEN usage.
parent
40601653
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
82 additions
and
82 deletions
+82
-82
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+33
-33
relay.c
dlls/ntdll/relay.c
+18
-18
resource.c
dlls/ntdll/resource.c
+2
-2
signal_i386.c
dlls/ntdll/signal_i386.c
+4
-4
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+1
-1
signal_arm.c
dlls/ntdll/unix/signal_arm.c
+3
-3
signal_arm64.c
dlls/ntdll/unix/signal_arm64.c
+4
-4
signal_i386.c
dlls/ntdll/unix/signal_i386.c
+7
-7
signal_x86_64.c
dlls/ntdll/unix/signal_x86_64.c
+7
-7
system.c
dlls/ntdll/unix/system.c
+2
-2
unix_private.h
dlls/ntdll/unix/unix_private.h
+0
-0
unixlib.h
dlls/ntdll/unixlib.h
+1
-1
No files found.
dlls/ntdll/ntdll_misc.h
View file @
59485f00
...
...
@@ -44,55 +44,55 @@
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)
static
const
UINT_PTR
page_size
=
0x1000
;
#else
extern
UINT_PTR
page_size
DECLSPEC_HIDDEN
;
extern
UINT_PTR
page_size
;
#endif
/* exceptions */
extern
LONG
call_vectored_handlers
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
)
DECLSPEC_HIDDEN
;
extern
void
DECLSPEC_NORETURN
raise_status
(
NTSTATUS
status
,
EXCEPTION_RECORD
*
rec
)
DECLSPEC_HIDDEN
;
extern
LONG
WINAPI
call_unhandled_exception_filter
(
PEXCEPTION_POINTERS
eptr
)
DECLSPEC_HIDDEN
;
extern
LONG
call_vectored_handlers
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
);
extern
void
DECLSPEC_NORETURN
raise_status
(
NTSTATUS
status
,
EXCEPTION_RECORD
*
rec
);
extern
LONG
WINAPI
call_unhandled_exception_filter
(
PEXCEPTION_POINTERS
eptr
);
extern
void
WINAPI
LdrInitializeThunk
(
CONTEXT
*
,
ULONG_PTR
,
ULONG_PTR
,
ULONG_PTR
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
WINAPI
KiUserExceptionDispatcher
(
EXCEPTION_RECORD
*
,
CONTEXT
*
)
DECLSPEC_HIDDEN
;
extern
void
WINAPI
KiUserApcDispatcher
(
CONTEXT
*
,
ULONG_PTR
,
ULONG_PTR
,
ULONG_PTR
,
PNTAPCFUNC
)
DECLSPEC_HIDDEN
;
extern
void
WINAPI
KiUserCallbackDispatcher
(
ULONG
,
void
*
,
ULONG
)
DECLSPEC_HIDDEN
;
extern
void
(
WINAPI
*
pWow64PrepareForException
)(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
)
DECLSPEC_HIDDEN
;
extern
void
WINAPI
LdrInitializeThunk
(
CONTEXT
*
,
ULONG_PTR
,
ULONG_PTR
,
ULONG_PTR
);
extern
NTSTATUS
WINAPI
KiUserExceptionDispatcher
(
EXCEPTION_RECORD
*
,
CONTEXT
*
);
extern
void
WINAPI
KiUserApcDispatcher
(
CONTEXT
*
,
ULONG_PTR
,
ULONG_PTR
,
ULONG_PTR
,
PNTAPCFUNC
);
extern
void
WINAPI
KiUserCallbackDispatcher
(
ULONG
,
void
*
,
ULONG
);
extern
void
(
WINAPI
*
pWow64PrepareForException
)(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
);
#if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)
extern
RUNTIME_FUNCTION
*
lookup_function_info
(
ULONG_PTR
pc
,
ULONG_PTR
*
base
,
LDR_DATA_TABLE_ENTRY
**
module
)
DECLSPEC_HIDDEN
;
extern
RUNTIME_FUNCTION
*
lookup_function_info
(
ULONG_PTR
pc
,
ULONG_PTR
*
base
,
LDR_DATA_TABLE_ENTRY
**
module
);
#endif
/* debug helpers */
extern
LPCSTR
debugstr_us
(
const
UNICODE_STRING
*
str
)
DECLSPEC_HIDDEN
;
extern
const
char
*
debugstr_exception_code
(
DWORD
code
)
DECLSPEC_HIDDEN
;
extern
void
set_native_thread_name
(
DWORD
tid
,
const
char
*
name
)
DECLSPEC_HIDDEN
;
extern
LPCSTR
debugstr_us
(
const
UNICODE_STRING
*
str
);
extern
const
char
*
debugstr_exception_code
(
DWORD
code
);
extern
void
set_native_thread_name
(
DWORD
tid
,
const
char
*
name
);
/* init routines */
extern
void
loader_init
(
CONTEXT
*
context
,
void
**
entry
)
DECLSPEC_HIDDEN
;
extern
void
version_init
(
void
)
DECLSPEC_HIDDEN
;
extern
void
debug_init
(
void
)
DECLSPEC_HIDDEN
;
extern
void
actctx_init
(
void
)
DECLSPEC_HIDDEN
;
extern
void
locale_init
(
void
)
DECLSPEC_HIDDEN
;
extern
void
init_user_process_params
(
void
)
DECLSPEC_HIDDEN
;
extern
void
get_resource_lcids
(
LANGID
*
user
,
LANGID
*
user_neutral
,
LANGID
*
system
)
DECLSPEC_HIDDEN
;
extern
void
loader_init
(
CONTEXT
*
context
,
void
**
entry
);
extern
void
version_init
(
void
);
extern
void
debug_init
(
void
);
extern
void
actctx_init
(
void
);
extern
void
locale_init
(
void
);
extern
void
init_user_process_params
(
void
);
extern
void
get_resource_lcids
(
LANGID
*
user
,
LANGID
*
user_neutral
,
LANGID
*
system
);
/* module handling */
extern
LIST_ENTRY
tls_links
DECLSPEC_HIDDEN
;
extern
LIST_ENTRY
tls_links
;
extern
FARPROC
RELAY_GetProcAddress
(
HMODULE
module
,
const
IMAGE_EXPORT_DIRECTORY
*
exports
,
DWORD
exp_size
,
FARPROC
proc
,
DWORD
ordinal
,
const
WCHAR
*
user
)
DECLSPEC_HIDDEN
;
DWORD
exp_size
,
FARPROC
proc
,
DWORD
ordinal
,
const
WCHAR
*
user
);
extern
FARPROC
SNOOP_GetProcAddress
(
HMODULE
hmod
,
const
IMAGE_EXPORT_DIRECTORY
*
exports
,
DWORD
exp_size
,
FARPROC
origfun
,
DWORD
ordinal
,
const
WCHAR
*
user
)
DECLSPEC_HIDDEN
;
extern
void
RELAY_SetupDLL
(
HMODULE
hmod
)
DECLSPEC_HIDDEN
;
extern
void
SNOOP_SetupDLL
(
HMODULE
hmod
)
DECLSPEC_HIDDEN
;
extern
const
WCHAR
windows_dir
[]
DECLSPEC_HIDDEN
;
extern
const
WCHAR
system_dir
[]
DECLSPEC_HIDDEN
;
FARPROC
origfun
,
DWORD
ordinal
,
const
WCHAR
*
user
);
extern
void
RELAY_SetupDLL
(
HMODULE
hmod
);
extern
void
SNOOP_SetupDLL
(
HMODULE
hmod
);
extern
const
WCHAR
windows_dir
[];
extern
const
WCHAR
system_dir
[];
extern
void
(
FASTCALL
*
pBaseThreadInitThunk
)(
DWORD
,
LPTHREAD_START_ROUTINE
,
void
*
)
DECLSPEC_HIDDEN
;
extern
void
(
FASTCALL
*
pBaseThreadInitThunk
)(
DWORD
,
LPTHREAD_START_ROUTINE
,
void
*
);
extern
struct
_KUSER_SHARED_DATA
*
user_shared_data
DECLSPEC_HIDDEN
;
extern
struct
_KUSER_SHARED_DATA
*
user_shared_data
;
extern
int
CDECL
NTDLL__vsnprintf
(
char
*
str
,
SIZE_T
len
,
const
char
*
format
,
va_list
args
)
DECLSPEC_HIDDEN
;
extern
int
CDECL
NTDLL__vsnwprintf
(
WCHAR
*
str
,
SIZE_T
len
,
const
WCHAR
*
format
,
va_list
args
)
DECLSPEC_HIDDEN
;
extern
int
CDECL
NTDLL__vsnprintf
(
char
*
str
,
SIZE_T
len
,
const
char
*
format
,
va_list
args
);
extern
int
CDECL
NTDLL__vsnwprintf
(
WCHAR
*
str
,
SIZE_T
len
,
const
WCHAR
*
format
,
va_list
args
);
struct
dllredirect_data
{
...
...
@@ -128,8 +128,8 @@ static inline void ascii_to_unicode( WCHAR *dst, const char *src, size_t len )
}
/* FLS data */
extern
TEB_FLS_DATA
*
fls_alloc_data
(
void
)
DECLSPEC_HIDDEN
;
extern
void
heap_thread_detach
(
void
)
DECLSPEC_HIDDEN
;
extern
TEB_FLS_DATA
*
fls_alloc_data
(
void
);
extern
void
heap_thread_detach
(
void
);
#ifdef __arm64ec__
...
...
dlls/ntdll/relay.c
View file @
59485f00
...
...
@@ -307,8 +307,8 @@ static void trace_string_w( INT_PTR ptr )
/***********************************************************************
* relay_trace_entry
*/
DECLSPEC_HIDDEN
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
DWORD
*
stack
,
unsigned
int
*
nb_args
)
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
DWORD
*
stack
,
unsigned
int
*
nb_args
)
{
WORD
ordinal
=
LOWORD
(
idx
);
const
char
*
arg_types
=
descr
->
args_string
+
HIWORD
(
idx
);
...
...
@@ -363,8 +363,8 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
/***********************************************************************
* relay_trace_exit
*/
DECLSPEC_HIDDEN
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
void
*
retaddr
,
LONGLONG
retval
)
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
void
*
retaddr
,
LONGLONG
retval
)
{
const
char
*
arg_types
=
descr
->
args_string
+
HIWORD
(
idx
);
...
...
@@ -446,8 +446,8 @@ __ASM_STDCALL_FUNC( relay_call, 8,
/***********************************************************************
* relay_trace_entry
*/
DECLSPEC_HIDDEN
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
DWORD
*
stack
,
unsigned
int
*
nb_args
)
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
DWORD
*
stack
,
unsigned
int
*
nb_args
)
{
WORD
ordinal
=
LOWORD
(
idx
);
const
char
*
arg_types
=
descr
->
args_string
+
HIWORD
(
idx
);
...
...
@@ -527,8 +527,8 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
/***********************************************************************
* relay_trace_exit
*/
DECLSPEC_HIDDEN
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
DWORD
retaddr
,
LONGLONG
retval
)
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
DWORD
retaddr
,
LONGLONG
retval
)
{
const
char
*
arg_types
=
descr
->
args_string
+
HIWORD
(
idx
);
...
...
@@ -600,8 +600,8 @@ __ASM_GLOBAL_FUNC( relay_call,
/***********************************************************************
* relay_trace_entry
*/
DECLSPEC_HIDDEN
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
INT_PTR
*
stack
,
unsigned
int
*
nb_args
)
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
INT_PTR
*
stack
,
unsigned
int
*
nb_args
)
{
WORD
ordinal
=
LOWORD
(
idx
);
const
char
*
arg_types
=
descr
->
args_string
+
HIWORD
(
idx
);
...
...
@@ -636,8 +636,8 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
/***********************************************************************
* relay_trace_exit
*/
DECLSPEC_HIDDEN
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
INT_PTR
retaddr
,
INT_PTR
retval
)
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
INT_PTR
retaddr
,
INT_PTR
retval
)
{
TRACE
(
"
\1
Ret %s() retval=%08Ix ret=%08Ix
\n
"
,
func_name
(
descr
->
private
,
LOWORD
(
idx
)
),
retval
,
retaddr
);
...
...
@@ -700,8 +700,8 @@ static LONGLONG WINAPI relay_call( struct relay_descr *descr, unsigned int idx,
/***********************************************************************
* relay_trace_entry
*/
DECLSPEC_HIDDEN
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
INT_PTR
*
stack
,
unsigned
int
*
nb_args
)
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
INT_PTR
*
stack
,
unsigned
int
*
nb_args
)
{
WORD
ordinal
=
LOWORD
(
idx
);
const
char
*
arg_types
=
descr
->
args_string
+
HIWORD
(
idx
);
...
...
@@ -742,8 +742,8 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
/***********************************************************************
* relay_trace_exit
*/
DECLSPEC_HIDDEN
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
INT_PTR
retaddr
,
INT_PTR
retval
)
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
INT_PTR
retaddr
,
INT_PTR
retval
)
{
TRACE
(
"
\1
Ret %s() retval=%08Ix ret=%08Ix
\n
"
,
func_name
(
descr
->
private
,
LOWORD
(
idx
)
),
retval
,
retaddr
);
...
...
@@ -1189,7 +1189,7 @@ static void SNOOP_PrintArg(DWORD x)
__ENDTRY
}
void
WINAPI
DECLSPEC_HIDDEN
__regs_SNOOP_Entry
(
void
**
stack
)
void
WINAPI
__regs_SNOOP_Entry
(
void
**
stack
)
{
SNOOP_DLL
*
dll
;
SNOOP_FUN
*
fun
=
(
SNOOP_FUN
*
)((
char
*
)
stack
[
0
]
-
5
);
...
...
@@ -1273,7 +1273,7 @@ void WINAPI DECLSPEC_HIDDEN __regs_SNOOP_Entry( void **stack )
TRACE_
(
snoop
)(
") ret=%08lx
\n
"
,(
DWORD
)
ret
->
origreturn
);
}
void
WINAPI
DECLSPEC_HIDDEN
__regs_SNOOP_Return
(
void
**
stack
)
void
WINAPI
__regs_SNOOP_Return
(
void
**
stack
)
{
SNOOP_RETURNENTRY
*
ret
=
(
SNOOP_RETURNENTRY
*
)((
char
*
)
stack
[
0
]
-
5
);
SNOOP_FUN
*
fun
=
&
ret
->
dll
->
funs
[
ret
->
ordinal
];
...
...
dlls/ntdll/resource.c
View file @
59485f00
...
...
@@ -309,8 +309,8 @@ NTSTATUS WINAPI DECLSPEC_HOTPATCH LdrFindResource_U( HMODULE hmod, const LDR_RES
/* don't penalize other platforms with stuff needed on i386 for compatibility */
#ifdef __i386__
NTSTATUS
WINAPI
DECLSPEC_HIDDEN
access_resource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
void
**
ptr
,
ULONG
*
size
)
NTSTATUS
WINAPI
access_resource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
void
**
ptr
,
ULONG
*
size
)
#else
static
inline
NTSTATUS
access_resource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
void
**
ptr
,
ULONG
*
size
)
...
...
dlls/ntdll/signal_i386.c
View file @
59485f00
...
...
@@ -371,8 +371,8 @@ void CDECL RtlRestoreContext( CONTEXT *context, EXCEPTION_RECORD *rec )
/*******************************************************************
* RtlUnwind (NTDLL.@)
*/
void
WINAPI
DECLSPEC_HIDDEN
__regs_RtlUnwind
(
EXCEPTION_REGISTRATION_RECORD
*
pEndFrame
,
PVOID
targetIp
,
PEXCEPTION_RECORD
pRecord
,
PVOID
retval
,
CONTEXT
*
context
)
void
WINAPI
__regs_RtlUnwind
(
EXCEPTION_REGISTRATION_RECORD
*
pEndFrame
,
PVOID
targetIp
,
PEXCEPTION_RECORD
pRecord
,
PVOID
retval
,
CONTEXT
*
context
)
{
EXCEPTION_RECORD
record
;
EXCEPTION_REGISTRATION_RECORD
*
frame
,
*
dispatch
;
...
...
@@ -559,7 +559,7 @@ __ASM_GLOBAL_FUNC( call_thread_func_wrapper,
"movl %eax,(%esp)
\n\t
"
"call *8(%ebp)"
)
void
DECLSPEC_HIDDEN
call_thread_func
(
PRTL_THREAD_START_ROUTINE
entry
,
void
*
arg
)
void
call_thread_func
(
PRTL_THREAD_START_ROUTINE
entry
,
void
*
arg
)
{
__TRY
{
...
...
@@ -575,7 +575,7 @@ void DECLSPEC_HIDDEN call_thread_func( PRTL_THREAD_START_ROUTINE entry, void *ar
/***********************************************************************
* signal_start_thread
*/
extern
void
CDECL
DECLSPEC_NORETURN
signal_start_thread
(
CONTEXT
*
ctx
)
DECLSPEC_HIDDEN
;
extern
void
CDECL
DECLSPEC_NORETURN
signal_start_thread
(
CONTEXT
*
ctx
);
__ASM_GLOBAL_FUNC
(
signal_start_thread
,
"movl 4(%esp),%esi
\n\t
"
/* context */
"leal -12(%esi),%edi
\n\t
"
...
...
dlls/ntdll/signal_x86_64.c
View file @
59485f00
...
...
@@ -1680,7 +1680,7 @@ void WINAPI RtlUserThreadStart( PRTL_THREAD_START_ROUTINE entry, void *arg )
/***********************************************************************
* signal_start_thread
*/
extern
void
CDECL
DECLSPEC_NORETURN
signal_start_thread
(
CONTEXT
*
ctx
)
DECLSPEC_HIDDEN
;
extern
void
CDECL
DECLSPEC_NORETURN
signal_start_thread
(
CONTEXT
*
ctx
);
__ASM_GLOBAL_FUNC
(
signal_start_thread
,
"movq %rcx,%rbx
\n\t
"
/* context */
/* clear the thread stack */
...
...
dlls/ntdll/unix/signal_arm.c
View file @
59485f00
...
...
@@ -1153,7 +1153,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context
* call_user_mode_callback
*/
extern
NTSTATUS
call_user_mode_callback
(
ULONG
id
,
void
*
args
,
ULONG
len
,
void
**
ret_ptr
,
ULONG
*
ret_len
,
void
*
func
,
TEB
*
teb
)
DECLSPEC_HIDDEN
;
ULONG
*
ret_len
,
void
*
func
,
TEB
*
teb
);
__ASM_GLOBAL_FUNC
(
call_user_mode_callback
,
"push {r4-r12,lr}
\n\t
"
"ldr ip, [sp, #0x2c]
\n\t
"
/* func */
...
...
@@ -1181,7 +1181,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback,
* user_mode_callback_return
*/
extern
void
DECLSPEC_NORETURN
user_mode_callback_return
(
void
*
ret_ptr
,
ULONG
ret_len
,
NTSTATUS
status
,
TEB
*
teb
)
DECLSPEC_HIDDEN
;
NTSTATUS
status
,
TEB
*
teb
);
__ASM_GLOBAL_FUNC
(
user_mode_callback_return
,
"ldr r4, [r3, #0x1d8]
\n\t
"
/* arm_thread_data()->syscall_frame */
"ldr r5, [r4, #0x4c]
\n\t
"
/* frame->prev_frame */
...
...
@@ -1570,7 +1570,7 @@ void signal_init_process(void)
/***********************************************************************
* call_init_thunk
*/
void
DECLSPEC_HIDDEN
call_init_thunk
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
BOOL
suspend
,
TEB
*
teb
)
void
call_init_thunk
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
BOOL
suspend
,
TEB
*
teb
)
{
struct
arm_thread_data
*
thread_data
=
(
struct
arm_thread_data
*
)
&
teb
->
GdiTebBatch
;
struct
syscall_frame
*
frame
=
thread_data
->
syscall_frame
;
...
...
dlls/ntdll/unix/signal_arm64.c
View file @
59485f00
...
...
@@ -1108,7 +1108,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context
* call_user_mode_callback
*/
extern
NTSTATUS
call_user_mode_callback
(
ULONG
id
,
void
*
args
,
ULONG
len
,
void
**
ret_ptr
,
ULONG
*
ret_len
,
void
*
func
,
TEB
*
teb
)
DECLSPEC_HIDDEN
;
ULONG
*
ret_len
,
void
*
func
,
TEB
*
teb
);
__ASM_GLOBAL_FUNC
(
call_user_mode_callback
,
"stp x29, x30, [sp,#-0xc0]!
\n\t
"
"mov x29, sp
\n\t
"
...
...
@@ -1142,7 +1142,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback,
* user_mode_callback_return
*/
extern
void
DECLSPEC_NORETURN
user_mode_callback_return
(
void
*
ret_ptr
,
ULONG
ret_len
,
NTSTATUS
status
,
TEB
*
teb
)
DECLSPEC_HIDDEN
;
NTSTATUS
status
,
TEB
*
teb
);
__ASM_GLOBAL_FUNC
(
user_mode_callback_return
,
"ldr x4, [x3, #0x2f8]
\n\t
"
/* arm64_thread_data()->syscall_frame */
"ldr x5, [x4, #0x110]
\n\t
"
/* prev_frame */
...
...
@@ -1596,7 +1596,7 @@ void signal_init_process(void)
/***********************************************************************
* syscall_dispatcher_return_slowpath
*/
void
DECLSPEC_HIDDEN
syscall_dispatcher_return_slowpath
(
void
)
void
syscall_dispatcher_return_slowpath
(
void
)
{
raise
(
SIGUSR2
);
}
...
...
@@ -1604,7 +1604,7 @@ void DECLSPEC_HIDDEN syscall_dispatcher_return_slowpath(void)
/***********************************************************************
* call_init_thunk
*/
void
DECLSPEC_HIDDEN
call_init_thunk
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
BOOL
suspend
,
TEB
*
teb
)
void
call_init_thunk
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
BOOL
suspend
,
TEB
*
teb
)
{
struct
arm64_thread_data
*
thread_data
=
(
struct
arm64_thread_data
*
)
&
teb
->
GdiTebBatch
;
struct
syscall_frame
*
frame
=
thread_data
->
syscall_frame
;
...
...
dlls/ntdll/unix/signal_i386.c
View file @
59485f00
...
...
@@ -566,7 +566,7 @@ struct xcontext
ULONG64
host_compaction_mask
;
};
extern
BOOL
xstate_compaction_enabled
DECLSPEC_HIDDEN
;
extern
BOOL
xstate_compaction_enabled
;
static
inline
XSTATE
*
xstate_from_context
(
const
CONTEXT
*
context
)
{
...
...
@@ -652,7 +652,7 @@ static int solaris_sigaction( int sig, const struct sigaction *new, struct sigac
#endif
extern
void
clear_alignment_flag
(
void
)
DECLSPEC_HIDDEN
;
extern
void
clear_alignment_flag
(
void
);
__ASM_GLOBAL_FUNC
(
clear_alignment_flag
,
"pushfl
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
...
...
@@ -1575,7 +1575,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context
* call_user_mode_callback
*/
extern
NTSTATUS
call_user_mode_callback
(
ULONG
id
,
void
*
args
,
ULONG
len
,
void
**
ret_ptr
,
ULONG
*
ret_len
,
void
*
func
,
TEB
*
teb
)
DECLSPEC_HIDDEN
;
ULONG
*
ret_len
,
void
*
func
,
TEB
*
teb
);
__ASM_GLOBAL_FUNC
(
call_user_mode_callback
,
"pushl %ebp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
...
...
@@ -1615,7 +1615,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback,
* user_mode_callback_return
*/
extern
void
DECLSPEC_NORETURN
user_mode_callback_return
(
void
*
ret_ptr
,
ULONG
ret_len
,
NTSTATUS
status
,
TEB
*
teb
)
DECLSPEC_HIDDEN
;
NTSTATUS
status
,
TEB
*
teb
);
__ASM_GLOBAL_FUNC
(
user_mode_callback_return
,
"movl 16(%esp),%edx
\n
"
/* teb */
"movl 0x1f8(%edx),%eax
\n\t
"
/* x86_thread_data()->syscall_frame */
...
...
@@ -1814,13 +1814,13 @@ static BOOL handle_syscall_trap( ucontext_t *sigcontext )
if
((
void
*
)
EIP_sig
(
sigcontext
)
==
__wine_syscall_dispatcher
)
{
extern
void
__wine_syscall_dispatcher_prolog_end
(
void
)
DECLSPEC_HIDDEN
;
extern
void
__wine_syscall_dispatcher_prolog_end
(
void
);
EIP_sig
(
sigcontext
)
=
(
ULONG
)
__wine_syscall_dispatcher_prolog_end
;
}
else
if
((
void
*
)
EIP_sig
(
sigcontext
)
==
__wine_unix_call_dispatcher
)
{
extern
void
__wine_unix_call_dispatcher_prolog_end
(
void
)
DECLSPEC_HIDDEN
;
extern
void
__wine_unix_call_dispatcher_prolog_end
(
void
);
EIP_sig
(
sigcontext
)
=
(
ULONG
)
__wine_unix_call_dispatcher_prolog_end
;
}
...
...
@@ -2414,7 +2414,7 @@ void signal_init_process(void)
/***********************************************************************
* call_init_thunk
*/
void
DECLSPEC_HIDDEN
call_init_thunk
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
BOOL
suspend
,
TEB
*
teb
)
void
call_init_thunk
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
BOOL
suspend
,
TEB
*
teb
)
{
struct
x86_thread_data
*
thread_data
=
(
struct
x86_thread_data
*
)
&
teb
->
GdiTebBatch
;
struct
syscall_frame
*
frame
=
thread_data
->
syscall_frame
;
...
...
dlls/ntdll/unix/signal_x86_64.c
View file @
59485f00
...
...
@@ -88,7 +88,7 @@ WINE_DECLARE_DEBUG_CHANNEL(seh);
#include <asm/prctl.h>
static
inline
int
arch_prctl
(
int
func
,
void
*
ptr
)
{
return
syscall
(
__NR_arch_prctl
,
func
,
ptr
);
}
extern
int
alloc_fs_sel
(
int
sel
,
void
*
base
)
DECLSPEC_HIDDEN
;
extern
int
alloc_fs_sel
(
int
sel
,
void
*
base
);
__ASM_GLOBAL_FUNC
(
alloc_fs_sel
,
/* switch to 32-bit stack */
"pushq %rbx
\n\t
"
...
...
@@ -457,7 +457,7 @@ struct xcontext
ULONG64
host_compaction_mask
;
};
extern
BOOL
xstate_compaction_enabled
DECLSPEC_HIDDEN
;
extern
BOOL
xstate_compaction_enabled
;
static
inline
XSTATE
*
xstate_from_context
(
const
CONTEXT
*
context
)
{
...
...
@@ -1549,7 +1549,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context
* call_user_mode_callback
*/
extern
NTSTATUS
call_user_mode_callback
(
ULONG
id
,
void
*
args
,
ULONG
len
,
void
**
ret_ptr
,
ULONG
*
ret_len
,
void
*
func
,
TEB
*
teb
)
DECLSPEC_HIDDEN
;
ULONG
*
ret_len
,
void
*
func
,
TEB
*
teb
);
__ASM_GLOBAL_FUNC
(
call_user_mode_callback
,
"subq $0x48,%rsp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 0x48
\n\t
"
)
...
...
@@ -1602,7 +1602,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback,
* user_mode_callback_return
*/
extern
void
DECLSPEC_NORETURN
user_mode_callback_return
(
void
*
ret_ptr
,
ULONG
ret_len
,
NTSTATUS
status
,
TEB
*
teb
)
DECLSPEC_HIDDEN
;
NTSTATUS
status
,
TEB
*
teb
);
__ASM_GLOBAL_FUNC
(
user_mode_callback_return
,
"movq 0x328(%rcx),%r10
\n\t
"
/* amd64_thread_data()->syscall_frame */
"movq 0xa0(%r10),%r11
\n\t
"
/* frame->prev_frame */
...
...
@@ -1857,13 +1857,13 @@ static BOOL handle_syscall_trap( ucontext_t *sigcontext )
if
((
void
*
)
RIP_sig
(
sigcontext
)
==
__wine_syscall_dispatcher
)
{
extern
void
__wine_syscall_dispatcher_prolog_end
(
void
)
DECLSPEC_HIDDEN
;
extern
void
__wine_syscall_dispatcher_prolog_end
(
void
);
RIP_sig
(
sigcontext
)
=
(
ULONG64
)
__wine_syscall_dispatcher_prolog_end
;
}
else
if
((
void
*
)
RIP_sig
(
sigcontext
)
==
__wine_unix_call_dispatcher
)
{
extern
void
__wine_unix_call_dispatcher_prolog_end
(
void
)
DECLSPEC_HIDDEN
;
extern
void
__wine_unix_call_dispatcher_prolog_end
(
void
);
RIP_sig
(
sigcontext
)
=
(
ULONG64
)
__wine_unix_call_dispatcher_prolog_end
;
R10_sig
(
sigcontext
)
=
RCX_sig
(
sigcontext
);
...
...
@@ -2434,7 +2434,7 @@ void signal_init_process(void)
/***********************************************************************
* call_init_thunk
*/
void
DECLSPEC_HIDDEN
call_init_thunk
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
BOOL
suspend
,
TEB
*
teb
)
void
call_init_thunk
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
BOOL
suspend
,
TEB
*
teb
)
{
struct
amd64_thread_data
*
thread_data
=
(
struct
amd64_thread_data
*
)
&
teb
->
GdiTebBatch
;
struct
syscall_frame
*
frame
=
thread_data
->
syscall_frame
;
...
...
dlls/ntdll/unix/system.c
View file @
59485f00
...
...
@@ -257,7 +257,7 @@ BOOL xstate_compaction_enabled = FALSE;
#define INEI 0x49656e69
/* "ineI" */
#define NTEL 0x6c65746e
/* "ntel" */
extern
void
do_cpuid
(
unsigned
int
ax
,
unsigned
int
cx
,
unsigned
int
*
p
)
DECLSPEC_HIDDEN
;
extern
void
do_cpuid
(
unsigned
int
ax
,
unsigned
int
cx
,
unsigned
int
*
p
);
#ifdef __i386__
__ASM_GLOBAL_FUNC
(
do_cpuid
,
"pushl %esi
\n\t
"
...
...
@@ -289,7 +289,7 @@ __ASM_GLOBAL_FUNC( do_cpuid,
#endif
#ifdef __i386__
extern
int
have_cpuid
(
void
)
DECLSPEC_HIDDEN
;
extern
int
have_cpuid
(
void
);
__ASM_GLOBAL_FUNC
(
have_cpuid
,
"pushfl
\n\t
"
"pushfl
\n\t
"
...
...
dlls/ntdll/unix/unix_private.h
View file @
59485f00
This diff is collapsed.
Click to expand it.
dlls/ntdll/unixlib.h
View file @
59485f00
...
...
@@ -78,6 +78,6 @@ enum ntdll_unix_funcs
unix_system_time_precise
,
};
extern
unixlib_handle_t
__wine_unixlib_handle
DECLSPEC_HIDDEN
;
extern
unixlib_handle_t
__wine_unixlib_handle
;
#endif
/* __NTDLL_UNIXLIB_H */
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