Commit 59485f00 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Remove DECLSPEC_HIDDEN usage.

parent 40601653
...@@ -44,55 +44,55 @@ ...@@ -44,55 +44,55 @@
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)
static const UINT_PTR page_size = 0x1000; static const UINT_PTR page_size = 0x1000;
#else #else
extern UINT_PTR page_size DECLSPEC_HIDDEN; extern UINT_PTR page_size;
#endif #endif
/* exceptions */ /* exceptions */
extern LONG call_vectored_handlers( EXCEPTION_RECORD *rec, CONTEXT *context ) DECLSPEC_HIDDEN; extern LONG call_vectored_handlers( EXCEPTION_RECORD *rec, CONTEXT *context );
extern void DECLSPEC_NORETURN raise_status( NTSTATUS status, EXCEPTION_RECORD *rec ) DECLSPEC_HIDDEN; extern void DECLSPEC_NORETURN raise_status( NTSTATUS status, EXCEPTION_RECORD *rec );
extern LONG WINAPI call_unhandled_exception_filter( PEXCEPTION_POINTERS eptr ) DECLSPEC_HIDDEN; extern LONG WINAPI call_unhandled_exception_filter( PEXCEPTION_POINTERS eptr );
extern void WINAPI LdrInitializeThunk(CONTEXT*,ULONG_PTR,ULONG_PTR,ULONG_PTR) DECLSPEC_HIDDEN; extern void WINAPI LdrInitializeThunk(CONTEXT*,ULONG_PTR,ULONG_PTR,ULONG_PTR);
extern NTSTATUS WINAPI KiUserExceptionDispatcher(EXCEPTION_RECORD*,CONTEXT*) DECLSPEC_HIDDEN; extern NTSTATUS WINAPI KiUserExceptionDispatcher(EXCEPTION_RECORD*,CONTEXT*);
extern void WINAPI KiUserApcDispatcher(CONTEXT*,ULONG_PTR,ULONG_PTR,ULONG_PTR,PNTAPCFUNC) DECLSPEC_HIDDEN; extern void WINAPI KiUserApcDispatcher(CONTEXT*,ULONG_PTR,ULONG_PTR,ULONG_PTR,PNTAPCFUNC);
extern void WINAPI KiUserCallbackDispatcher(ULONG,void*,ULONG) DECLSPEC_HIDDEN; extern void WINAPI KiUserCallbackDispatcher(ULONG,void*,ULONG);
extern void (WINAPI *pWow64PrepareForException)( EXCEPTION_RECORD *rec, CONTEXT *context ) DECLSPEC_HIDDEN; extern void (WINAPI *pWow64PrepareForException)( EXCEPTION_RECORD *rec, CONTEXT *context );
#if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) #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 #endif
/* debug helpers */ /* debug helpers */
extern LPCSTR debugstr_us( const UNICODE_STRING *str ) DECLSPEC_HIDDEN; extern LPCSTR debugstr_us( const UNICODE_STRING *str );
extern const char *debugstr_exception_code( DWORD code ) DECLSPEC_HIDDEN; extern const char *debugstr_exception_code( DWORD code );
extern void set_native_thread_name( DWORD tid, const char *name ) DECLSPEC_HIDDEN; extern void set_native_thread_name( DWORD tid, const char *name );
/* init routines */ /* init routines */
extern void loader_init( CONTEXT *context, void **entry ) DECLSPEC_HIDDEN; extern void loader_init( CONTEXT *context, void **entry );
extern void version_init(void) DECLSPEC_HIDDEN; extern void version_init(void);
extern void debug_init(void) DECLSPEC_HIDDEN; extern void debug_init(void);
extern void actctx_init(void) DECLSPEC_HIDDEN; extern void actctx_init(void);
extern void locale_init(void) DECLSPEC_HIDDEN; extern void locale_init(void);
extern void init_user_process_params(void) DECLSPEC_HIDDEN; extern void init_user_process_params(void);
extern void get_resource_lcids( LANGID *user, LANGID *user_neutral, LANGID *system ) DECLSPEC_HIDDEN; extern void get_resource_lcids( LANGID *user, LANGID *user_neutral, LANGID *system );
/* module handling */ /* 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, 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, extern FARPROC SNOOP_GetProcAddress( HMODULE hmod, const IMAGE_EXPORT_DIRECTORY *exports, DWORD exp_size,
FARPROC origfun, DWORD ordinal, const WCHAR *user ) DECLSPEC_HIDDEN; FARPROC origfun, DWORD ordinal, const WCHAR *user );
extern void RELAY_SetupDLL( HMODULE hmod ) DECLSPEC_HIDDEN; extern void RELAY_SetupDLL( HMODULE hmod );
extern void SNOOP_SetupDLL( HMODULE hmod ) DECLSPEC_HIDDEN; extern void SNOOP_SetupDLL( HMODULE hmod );
extern const WCHAR windows_dir[] DECLSPEC_HIDDEN; extern const WCHAR windows_dir[];
extern const WCHAR system_dir[] DECLSPEC_HIDDEN; 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__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 ) DECLSPEC_HIDDEN; extern int CDECL NTDLL__vsnwprintf( WCHAR *str, SIZE_T len, const WCHAR *format, va_list args );
struct dllredirect_data struct dllredirect_data
{ {
...@@ -128,8 +128,8 @@ static inline void ascii_to_unicode( WCHAR *dst, const char *src, size_t len ) ...@@ -128,8 +128,8 @@ static inline void ascii_to_unicode( WCHAR *dst, const char *src, size_t len )
} }
/* FLS data */ /* FLS data */
extern TEB_FLS_DATA *fls_alloc_data(void) DECLSPEC_HIDDEN; extern TEB_FLS_DATA *fls_alloc_data(void);
extern void heap_thread_detach(void) DECLSPEC_HIDDEN; extern void heap_thread_detach(void);
#ifdef __arm64ec__ #ifdef __arm64ec__
......
...@@ -307,8 +307,8 @@ static void trace_string_w( INT_PTR ptr ) ...@@ -307,8 +307,8 @@ static void trace_string_w( INT_PTR ptr )
/*********************************************************************** /***********************************************************************
* relay_trace_entry * relay_trace_entry
*/ */
DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx, void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx,
const DWORD *stack, unsigned int *nb_args ) const DWORD *stack, unsigned int *nb_args )
{ {
WORD ordinal = LOWORD(idx); WORD ordinal = LOWORD(idx);
const char *arg_types = descr->args_string + HIWORD(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 ...@@ -363,8 +363,8 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
/*********************************************************************** /***********************************************************************
* relay_trace_exit * relay_trace_exit
*/ */
DECLSPEC_HIDDEN void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx, void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx,
void *retaddr, LONGLONG retval ) void *retaddr, LONGLONG retval )
{ {
const char *arg_types = descr->args_string + HIWORD(idx); const char *arg_types = descr->args_string + HIWORD(idx);
...@@ -446,8 +446,8 @@ __ASM_STDCALL_FUNC( relay_call, 8, ...@@ -446,8 +446,8 @@ __ASM_STDCALL_FUNC( relay_call, 8,
/*********************************************************************** /***********************************************************************
* relay_trace_entry * relay_trace_entry
*/ */
DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx, void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx,
const DWORD *stack, unsigned int *nb_args ) const DWORD *stack, unsigned int *nb_args )
{ {
WORD ordinal = LOWORD(idx); WORD ordinal = LOWORD(idx);
const char *arg_types = descr->args_string + HIWORD(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 ...@@ -527,8 +527,8 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
/*********************************************************************** /***********************************************************************
* relay_trace_exit * relay_trace_exit
*/ */
DECLSPEC_HIDDEN void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx, void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx,
DWORD retaddr, LONGLONG retval ) DWORD retaddr, LONGLONG retval )
{ {
const char *arg_types = descr->args_string + HIWORD(idx); const char *arg_types = descr->args_string + HIWORD(idx);
...@@ -600,8 +600,8 @@ __ASM_GLOBAL_FUNC( relay_call, ...@@ -600,8 +600,8 @@ __ASM_GLOBAL_FUNC( relay_call,
/*********************************************************************** /***********************************************************************
* relay_trace_entry * relay_trace_entry
*/ */
DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx, void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx,
const INT_PTR *stack, unsigned int *nb_args ) const INT_PTR *stack, unsigned int *nb_args )
{ {
WORD ordinal = LOWORD(idx); WORD ordinal = LOWORD(idx);
const char *arg_types = descr->args_string + HIWORD(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 ...@@ -636,8 +636,8 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
/*********************************************************************** /***********************************************************************
* relay_trace_exit * relay_trace_exit
*/ */
DECLSPEC_HIDDEN void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx, void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx,
INT_PTR retaddr, INT_PTR retval ) INT_PTR retaddr, INT_PTR retval )
{ {
TRACE( "\1Ret %s() retval=%08Ix ret=%08Ix\n", TRACE( "\1Ret %s() retval=%08Ix ret=%08Ix\n",
func_name( descr->private, LOWORD(idx) ), retval, retaddr ); func_name( descr->private, LOWORD(idx) ), retval, retaddr );
...@@ -700,8 +700,8 @@ static LONGLONG WINAPI relay_call( struct relay_descr *descr, unsigned int idx, ...@@ -700,8 +700,8 @@ static LONGLONG WINAPI relay_call( struct relay_descr *descr, unsigned int idx,
/*********************************************************************** /***********************************************************************
* relay_trace_entry * relay_trace_entry
*/ */
DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx, void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx,
const INT_PTR *stack, unsigned int *nb_args ) const INT_PTR *stack, unsigned int *nb_args )
{ {
WORD ordinal = LOWORD(idx); WORD ordinal = LOWORD(idx);
const char *arg_types = descr->args_string + HIWORD(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 ...@@ -742,8 +742,8 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
/*********************************************************************** /***********************************************************************
* relay_trace_exit * relay_trace_exit
*/ */
DECLSPEC_HIDDEN void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx, void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx,
INT_PTR retaddr, INT_PTR retval ) INT_PTR retaddr, INT_PTR retval )
{ {
TRACE( "\1Ret %s() retval=%08Ix ret=%08Ix\n", TRACE( "\1Ret %s() retval=%08Ix ret=%08Ix\n",
func_name( descr->private, LOWORD(idx) ), retval, retaddr ); func_name( descr->private, LOWORD(idx) ), retval, retaddr );
...@@ -1189,7 +1189,7 @@ static void SNOOP_PrintArg(DWORD x) ...@@ -1189,7 +1189,7 @@ static void SNOOP_PrintArg(DWORD x)
__ENDTRY __ENDTRY
} }
void WINAPI DECLSPEC_HIDDEN __regs_SNOOP_Entry( void **stack ) void WINAPI __regs_SNOOP_Entry( void **stack )
{ {
SNOOP_DLL *dll; SNOOP_DLL *dll;
SNOOP_FUN *fun = (SNOOP_FUN *)((char *)stack[0] - 5); SNOOP_FUN *fun = (SNOOP_FUN *)((char *)stack[0] - 5);
...@@ -1273,7 +1273,7 @@ void WINAPI DECLSPEC_HIDDEN __regs_SNOOP_Entry( void **stack ) ...@@ -1273,7 +1273,7 @@ void WINAPI DECLSPEC_HIDDEN __regs_SNOOP_Entry( void **stack )
TRACE_(snoop)(") ret=%08lx\n",(DWORD)ret->origreturn); 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_RETURNENTRY *ret = (SNOOP_RETURNENTRY*)((char *)stack[0] - 5);
SNOOP_FUN *fun = &ret->dll->funs[ret->ordinal]; SNOOP_FUN *fun = &ret->dll->funs[ret->ordinal];
......
...@@ -309,8 +309,8 @@ NTSTATUS WINAPI DECLSPEC_HOTPATCH LdrFindResource_U( HMODULE hmod, const LDR_RES ...@@ -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 */ /* don't penalize other platforms with stuff needed on i386 for compatibility */
#ifdef __i386__ #ifdef __i386__
NTSTATUS WINAPI DECLSPEC_HIDDEN access_resource( HMODULE hmod, const IMAGE_RESOURCE_DATA_ENTRY *entry, NTSTATUS WINAPI access_resource( HMODULE hmod, const IMAGE_RESOURCE_DATA_ENTRY *entry,
void **ptr, ULONG *size ) void **ptr, ULONG *size )
#else #else
static inline NTSTATUS access_resource( HMODULE hmod, const IMAGE_RESOURCE_DATA_ENTRY *entry, static inline NTSTATUS access_resource( HMODULE hmod, const IMAGE_RESOURCE_DATA_ENTRY *entry,
void **ptr, ULONG *size ) void **ptr, ULONG *size )
......
...@@ -371,8 +371,8 @@ void CDECL RtlRestoreContext( CONTEXT *context, EXCEPTION_RECORD *rec ) ...@@ -371,8 +371,8 @@ void CDECL RtlRestoreContext( CONTEXT *context, EXCEPTION_RECORD *rec )
/******************************************************************* /*******************************************************************
* RtlUnwind (NTDLL.@) * RtlUnwind (NTDLL.@)
*/ */
void WINAPI DECLSPEC_HIDDEN __regs_RtlUnwind( EXCEPTION_REGISTRATION_RECORD* pEndFrame, PVOID targetIp, void WINAPI __regs_RtlUnwind( EXCEPTION_REGISTRATION_RECORD* pEndFrame, PVOID targetIp,
PEXCEPTION_RECORD pRecord, PVOID retval, CONTEXT *context ) PEXCEPTION_RECORD pRecord, PVOID retval, CONTEXT *context )
{ {
EXCEPTION_RECORD record; EXCEPTION_RECORD record;
EXCEPTION_REGISTRATION_RECORD *frame, *dispatch; EXCEPTION_REGISTRATION_RECORD *frame, *dispatch;
...@@ -559,7 +559,7 @@ __ASM_GLOBAL_FUNC( call_thread_func_wrapper, ...@@ -559,7 +559,7 @@ __ASM_GLOBAL_FUNC( call_thread_func_wrapper,
"movl %eax,(%esp)\n\t" "movl %eax,(%esp)\n\t"
"call *8(%ebp)" ) "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 __TRY
{ {
...@@ -575,7 +575,7 @@ void DECLSPEC_HIDDEN call_thread_func( PRTL_THREAD_START_ROUTINE entry, void *ar ...@@ -575,7 +575,7 @@ void DECLSPEC_HIDDEN call_thread_func( PRTL_THREAD_START_ROUTINE entry, void *ar
/*********************************************************************** /***********************************************************************
* signal_start_thread * 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, __ASM_GLOBAL_FUNC( signal_start_thread,
"movl 4(%esp),%esi\n\t" /* context */ "movl 4(%esp),%esi\n\t" /* context */
"leal -12(%esi),%edi\n\t" "leal -12(%esi),%edi\n\t"
......
...@@ -1680,7 +1680,7 @@ void WINAPI RtlUserThreadStart( PRTL_THREAD_START_ROUTINE entry, void *arg ) ...@@ -1680,7 +1680,7 @@ void WINAPI RtlUserThreadStart( PRTL_THREAD_START_ROUTINE entry, void *arg )
/*********************************************************************** /***********************************************************************
* signal_start_thread * 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, __ASM_GLOBAL_FUNC( signal_start_thread,
"movq %rcx,%rbx\n\t" /* context */ "movq %rcx,%rbx\n\t" /* context */
/* clear the thread stack */ /* clear the thread stack */
......
...@@ -1153,7 +1153,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context ...@@ -1153,7 +1153,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context
* call_user_mode_callback * call_user_mode_callback
*/ */
extern NTSTATUS call_user_mode_callback( ULONG id, void *args, ULONG len, void **ret_ptr, 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, __ASM_GLOBAL_FUNC( call_user_mode_callback,
"push {r4-r12,lr}\n\t" "push {r4-r12,lr}\n\t"
"ldr ip, [sp, #0x2c]\n\t" /* func */ "ldr ip, [sp, #0x2c]\n\t" /* func */
...@@ -1181,7 +1181,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback, ...@@ -1181,7 +1181,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback,
* user_mode_callback_return * user_mode_callback_return
*/ */
extern void DECLSPEC_NORETURN user_mode_callback_return( void *ret_ptr, ULONG ret_len, 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, __ASM_GLOBAL_FUNC( user_mode_callback_return,
"ldr r4, [r3, #0x1d8]\n\t" /* arm_thread_data()->syscall_frame */ "ldr r4, [r3, #0x1d8]\n\t" /* arm_thread_data()->syscall_frame */
"ldr r5, [r4, #0x4c]\n\t" /* frame->prev_frame */ "ldr r5, [r4, #0x4c]\n\t" /* frame->prev_frame */
...@@ -1570,7 +1570,7 @@ void signal_init_process(void) ...@@ -1570,7 +1570,7 @@ void signal_init_process(void)
/*********************************************************************** /***********************************************************************
* call_init_thunk * 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 arm_thread_data *thread_data = (struct arm_thread_data *)&teb->GdiTebBatch;
struct syscall_frame *frame = thread_data->syscall_frame; struct syscall_frame *frame = thread_data->syscall_frame;
......
...@@ -1108,7 +1108,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context ...@@ -1108,7 +1108,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context
* call_user_mode_callback * call_user_mode_callback
*/ */
extern NTSTATUS call_user_mode_callback( ULONG id, void *args, ULONG len, void **ret_ptr, 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, __ASM_GLOBAL_FUNC( call_user_mode_callback,
"stp x29, x30, [sp,#-0xc0]!\n\t" "stp x29, x30, [sp,#-0xc0]!\n\t"
"mov x29, sp\n\t" "mov x29, sp\n\t"
...@@ -1142,7 +1142,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback, ...@@ -1142,7 +1142,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback,
* user_mode_callback_return * user_mode_callback_return
*/ */
extern void DECLSPEC_NORETURN user_mode_callback_return( void *ret_ptr, ULONG ret_len, 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, __ASM_GLOBAL_FUNC( user_mode_callback_return,
"ldr x4, [x3, #0x2f8]\n\t" /* arm64_thread_data()->syscall_frame */ "ldr x4, [x3, #0x2f8]\n\t" /* arm64_thread_data()->syscall_frame */
"ldr x5, [x4, #0x110]\n\t" /* prev_frame */ "ldr x5, [x4, #0x110]\n\t" /* prev_frame */
...@@ -1596,7 +1596,7 @@ void signal_init_process(void) ...@@ -1596,7 +1596,7 @@ void signal_init_process(void)
/*********************************************************************** /***********************************************************************
* syscall_dispatcher_return_slowpath * syscall_dispatcher_return_slowpath
*/ */
void DECLSPEC_HIDDEN syscall_dispatcher_return_slowpath(void) void syscall_dispatcher_return_slowpath(void)
{ {
raise( SIGUSR2 ); raise( SIGUSR2 );
} }
...@@ -1604,7 +1604,7 @@ void DECLSPEC_HIDDEN syscall_dispatcher_return_slowpath(void) ...@@ -1604,7 +1604,7 @@ void DECLSPEC_HIDDEN syscall_dispatcher_return_slowpath(void)
/*********************************************************************** /***********************************************************************
* call_init_thunk * 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 arm64_thread_data *thread_data = (struct arm64_thread_data *)&teb->GdiTebBatch;
struct syscall_frame *frame = thread_data->syscall_frame; struct syscall_frame *frame = thread_data->syscall_frame;
......
...@@ -566,7 +566,7 @@ struct xcontext ...@@ -566,7 +566,7 @@ struct xcontext
ULONG64 host_compaction_mask; 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 ) 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 ...@@ -652,7 +652,7 @@ static int solaris_sigaction( int sig, const struct sigaction *new, struct sigac
#endif #endif
extern void clear_alignment_flag(void) DECLSPEC_HIDDEN; extern void clear_alignment_flag(void);
__ASM_GLOBAL_FUNC( clear_alignment_flag, __ASM_GLOBAL_FUNC( clear_alignment_flag,
"pushfl\n\t" "pushfl\n\t"
__ASM_CFI(".cfi_adjust_cfa_offset 4\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 ...@@ -1575,7 +1575,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context
* call_user_mode_callback * call_user_mode_callback
*/ */
extern NTSTATUS call_user_mode_callback( ULONG id, void *args, ULONG len, void **ret_ptr, 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, __ASM_GLOBAL_FUNC( call_user_mode_callback,
"pushl %ebp\n\t" "pushl %ebp\n\t"
__ASM_CFI(".cfi_adjust_cfa_offset 4\n\t") __ASM_CFI(".cfi_adjust_cfa_offset 4\n\t")
...@@ -1615,7 +1615,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback, ...@@ -1615,7 +1615,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback,
* user_mode_callback_return * user_mode_callback_return
*/ */
extern void DECLSPEC_NORETURN user_mode_callback_return( void *ret_ptr, ULONG ret_len, 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, __ASM_GLOBAL_FUNC( user_mode_callback_return,
"movl 16(%esp),%edx\n" /* teb */ "movl 16(%esp),%edx\n" /* teb */
"movl 0x1f8(%edx),%eax\n\t" /* x86_thread_data()->syscall_frame */ "movl 0x1f8(%edx),%eax\n\t" /* x86_thread_data()->syscall_frame */
...@@ -1814,13 +1814,13 @@ static BOOL handle_syscall_trap( ucontext_t *sigcontext ) ...@@ -1814,13 +1814,13 @@ static BOOL handle_syscall_trap( ucontext_t *sigcontext )
if ((void *)EIP_sig( sigcontext ) == __wine_syscall_dispatcher) 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; EIP_sig( sigcontext ) = (ULONG)__wine_syscall_dispatcher_prolog_end;
} }
else if ((void *)EIP_sig( sigcontext ) == __wine_unix_call_dispatcher) 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; EIP_sig( sigcontext ) = (ULONG)__wine_unix_call_dispatcher_prolog_end;
} }
...@@ -2414,7 +2414,7 @@ void signal_init_process(void) ...@@ -2414,7 +2414,7 @@ void signal_init_process(void)
/*********************************************************************** /***********************************************************************
* call_init_thunk * 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 x86_thread_data *thread_data = (struct x86_thread_data *)&teb->GdiTebBatch;
struct syscall_frame *frame = thread_data->syscall_frame; struct syscall_frame *frame = thread_data->syscall_frame;
......
...@@ -88,7 +88,7 @@ WINE_DECLARE_DEBUG_CHANNEL(seh); ...@@ -88,7 +88,7 @@ WINE_DECLARE_DEBUG_CHANNEL(seh);
#include <asm/prctl.h> #include <asm/prctl.h>
static inline int arch_prctl( int func, void *ptr ) { return syscall( __NR_arch_prctl, func, ptr ); } 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, __ASM_GLOBAL_FUNC( alloc_fs_sel,
/* switch to 32-bit stack */ /* switch to 32-bit stack */
"pushq %rbx\n\t" "pushq %rbx\n\t"
...@@ -457,7 +457,7 @@ struct xcontext ...@@ -457,7 +457,7 @@ struct xcontext
ULONG64 host_compaction_mask; 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 ) static inline XSTATE *xstate_from_context( const CONTEXT *context )
{ {
...@@ -1549,7 +1549,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context ...@@ -1549,7 +1549,7 @@ NTSTATUS call_user_exception_dispatcher( EXCEPTION_RECORD *rec, CONTEXT *context
* call_user_mode_callback * call_user_mode_callback
*/ */
extern NTSTATUS call_user_mode_callback( ULONG id, void *args, ULONG len, void **ret_ptr, 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, __ASM_GLOBAL_FUNC( call_user_mode_callback,
"subq $0x48,%rsp\n\t" "subq $0x48,%rsp\n\t"
__ASM_CFI(".cfi_adjust_cfa_offset 0x48\n\t") __ASM_CFI(".cfi_adjust_cfa_offset 0x48\n\t")
...@@ -1602,7 +1602,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback, ...@@ -1602,7 +1602,7 @@ __ASM_GLOBAL_FUNC( call_user_mode_callback,
* user_mode_callback_return * user_mode_callback_return
*/ */
extern void DECLSPEC_NORETURN user_mode_callback_return( void *ret_ptr, ULONG ret_len, 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, __ASM_GLOBAL_FUNC( user_mode_callback_return,
"movq 0x328(%rcx),%r10\n\t" /* amd64_thread_data()->syscall_frame */ "movq 0x328(%rcx),%r10\n\t" /* amd64_thread_data()->syscall_frame */
"movq 0xa0(%r10),%r11\n\t" /* frame->prev_frame */ "movq 0xa0(%r10),%r11\n\t" /* frame->prev_frame */
...@@ -1857,13 +1857,13 @@ static BOOL handle_syscall_trap( ucontext_t *sigcontext ) ...@@ -1857,13 +1857,13 @@ static BOOL handle_syscall_trap( ucontext_t *sigcontext )
if ((void *)RIP_sig( sigcontext ) == __wine_syscall_dispatcher) 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; RIP_sig( sigcontext ) = (ULONG64)__wine_syscall_dispatcher_prolog_end;
} }
else if ((void *)RIP_sig( sigcontext ) == __wine_unix_call_dispatcher) 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; RIP_sig( sigcontext ) = (ULONG64)__wine_unix_call_dispatcher_prolog_end;
R10_sig( sigcontext ) = RCX_sig( sigcontext ); R10_sig( sigcontext ) = RCX_sig( sigcontext );
...@@ -2434,7 +2434,7 @@ void signal_init_process(void) ...@@ -2434,7 +2434,7 @@ void signal_init_process(void)
/*********************************************************************** /***********************************************************************
* call_init_thunk * 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 amd64_thread_data *thread_data = (struct amd64_thread_data *)&teb->GdiTebBatch;
struct syscall_frame *frame = thread_data->syscall_frame; struct syscall_frame *frame = thread_data->syscall_frame;
......
...@@ -257,7 +257,7 @@ BOOL xstate_compaction_enabled = FALSE; ...@@ -257,7 +257,7 @@ BOOL xstate_compaction_enabled = FALSE;
#define INEI 0x49656e69 /* "ineI" */ #define INEI 0x49656e69 /* "ineI" */
#define NTEL 0x6c65746e /* "ntel" */ #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__ #ifdef __i386__
__ASM_GLOBAL_FUNC( do_cpuid, __ASM_GLOBAL_FUNC( do_cpuid,
"pushl %esi\n\t" "pushl %esi\n\t"
...@@ -289,7 +289,7 @@ __ASM_GLOBAL_FUNC( do_cpuid, ...@@ -289,7 +289,7 @@ __ASM_GLOBAL_FUNC( do_cpuid,
#endif #endif
#ifdef __i386__ #ifdef __i386__
extern int have_cpuid(void) DECLSPEC_HIDDEN; extern int have_cpuid(void);
__ASM_GLOBAL_FUNC( have_cpuid, __ASM_GLOBAL_FUNC( have_cpuid,
"pushfl\n\t" "pushfl\n\t"
"pushfl\n\t" "pushfl\n\t"
......
...@@ -78,6 +78,6 @@ enum ntdll_unix_funcs ...@@ -78,6 +78,6 @@ enum ntdll_unix_funcs
unix_system_time_precise, unix_system_time_precise,
}; };
extern unixlib_handle_t __wine_unixlib_handle DECLSPEC_HIDDEN; extern unixlib_handle_t __wine_unixlib_handle;
#endif /* __NTDLL_UNIXLIB_H */ #endif /* __NTDLL_UNIXLIB_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment