Commit 38d45cbc authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Mark function that are only called from assembly as hidden.

parent c5f72a72
...@@ -330,7 +330,8 @@ static void print_timestamp(void) ...@@ -330,7 +330,8 @@ static void print_timestamp(void)
* *
* stack points to the return address, i.e. the first argument is stack[1]. * stack points to the return address, i.e. the first argument is stack[1].
*/ */
void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx, const INT_PTR *stack ) DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr,
unsigned int idx, const INT_PTR *stack )
{ {
WORD ordinal = LOWORD(idx); WORD ordinal = LOWORD(idx);
BYTE nb_args = LOBYTE(HIWORD(idx)); BYTE nb_args = LOBYTE(HIWORD(idx));
...@@ -357,7 +358,7 @@ void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx, co ...@@ -357,7 +358,7 @@ void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx, co
/*********************************************************************** /***********************************************************************
* relay_trace_exit * relay_trace_exit
*/ */
void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx, DECLSPEC_HIDDEN void WINAPI relay_trace_exit( struct relay_descr *descr, unsigned int idx,
const INT_PTR *stack, LONGLONG retval ) const INT_PTR *stack, LONGLONG retval )
{ {
WORD ordinal = LOWORD(idx); WORD ordinal = LOWORD(idx);
...@@ -480,7 +481,7 @@ __ASM_GLOBAL_FUNC( relay_call, ...@@ -480,7 +481,7 @@ __ASM_GLOBAL_FUNC( relay_call,
__ASM_CFI(".cfi_same_value %ebp\n\t") __ASM_CFI(".cfi_same_value %ebp\n\t")
"ret $12" ) "ret $12" )
void WINAPI __regs_relay_call_regs( struct relay_descr *descr, unsigned int idx, void WINAPI DECLSPEC_HIDDEN __regs_relay_call_regs( struct relay_descr *descr, unsigned int idx,
unsigned int orig_eax, unsigned int ret_addr, unsigned int orig_eax, unsigned int ret_addr,
CONTEXT *context ) CONTEXT *context )
{ {
...@@ -1063,7 +1064,7 @@ static void SNOOP_PrintArg(DWORD x) ...@@ -1063,7 +1064,7 @@ static void SNOOP_PrintArg(DWORD x)
__ENDTRY __ENDTRY
} }
void WINAPI __regs_SNOOP_Entry( void **stack ) void WINAPI DECLSPEC_HIDDEN __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);
...@@ -1149,7 +1150,7 @@ void WINAPI __regs_SNOOP_Entry( void **stack ) ...@@ -1149,7 +1150,7 @@ void WINAPI __regs_SNOOP_Entry( void **stack )
DPRINTF(") ret=%08x\n",(DWORD)ret->origreturn); DPRINTF(") ret=%08x\n",(DWORD)ret->origreturn);
} }
void WINAPI __regs_SNOOP_Return( void **stack ) void WINAPI DECLSPEC_HIDDEN __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];
......
...@@ -314,7 +314,7 @@ NTSTATUS WINAPI LdrFindResource_U( HMODULE hmod, const LDR_RESOURCE_INFO *info, ...@@ -314,7 +314,7 @@ NTSTATUS WINAPI LdrFindResource_U( HMODULE hmod, const LDR_RESOURCE_INFO *info,
/* don't penalize other platforms stuff needed on i386 for compatibility */ /* don't penalize other platforms stuff needed on i386 for compatibility */
#ifdef __i386__ #ifdef __i386__
NTSTATUS WINAPI access_resource( HMODULE hmod, const IMAGE_RESOURCE_DATA_ENTRY *entry, NTSTATUS WINAPI DECLSPEC_HIDDEN 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,
......
...@@ -1238,7 +1238,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedPushListSListEx(PSLIST_HEADER list, PSLIST_ENT ...@@ -1238,7 +1238,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedPushListSListEx(PSLIST_HEADER list, PSLIST_ENT
*/ */
#ifdef DEFINE_FASTCALL4_ENTRYPOINT #ifdef DEFINE_FASTCALL4_ENTRYPOINT
DEFINE_FASTCALL4_ENTRYPOINT(RtlInterlockedPushListSList) DEFINE_FASTCALL4_ENTRYPOINT(RtlInterlockedPushListSList)
PSLIST_ENTRY WINAPI __regs_RtlInterlockedPushListSList(PSLIST_HEADER list, PSLIST_ENTRY first, PSLIST_ENTRY WINAPI DECLSPEC_HIDDEN __regs_RtlInterlockedPushListSList(PSLIST_HEADER list, PSLIST_ENTRY first,
PSLIST_ENTRY last, ULONG count) PSLIST_ENTRY last, ULONG count)
#else #else
PSLIST_ENTRY WINAPI RtlInterlockedPushListSList(PSLIST_HEADER list, PSLIST_ENTRY first, PSLIST_ENTRY WINAPI RtlInterlockedPushListSList(PSLIST_HEADER list, PSLIST_ENTRY first,
......
...@@ -1467,8 +1467,9 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context ) ...@@ -1467,8 +1467,9 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
* Note: we use a small assembly wrapper to save the necessary registers * Note: we use a small assembly wrapper to save the necessary registers
* in case we are fetching the context of the current thread. * in case we are fetching the context of the current thread.
*/ */
NTSTATUS CDECL __regs_NtGetContextThread( DWORD edi, DWORD esi, DWORD ebx, DWORD eflags, NTSTATUS CDECL DECLSPEC_HIDDEN __regs_NtGetContextThread( DWORD edi, DWORD esi, DWORD ebx, DWORD eflags,
DWORD ebp, DWORD retaddr, HANDLE handle, CONTEXT *context ) DWORD ebp, DWORD retaddr, HANDLE handle,
CONTEXT *context )
{ {
NTSTATUS ret; NTSTATUS ret;
DWORD needed_flags = context->ContextFlags & ~CONTEXT_i386; DWORD needed_flags = context->ContextFlags & ~CONTEXT_i386;
...@@ -2644,7 +2645,7 @@ void __wine_enter_vm86( CONTEXT *context ) ...@@ -2644,7 +2645,7 @@ void __wine_enter_vm86( CONTEXT *context )
/******************************************************************* /*******************************************************************
* RtlUnwind (NTDLL.@) * RtlUnwind (NTDLL.@)
*/ */
void WINAPI __regs_RtlUnwind( EXCEPTION_REGISTRATION_RECORD* pEndFrame, PVOID targetIp, void WINAPI DECLSPEC_HIDDEN __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;
...@@ -2850,7 +2851,7 @@ __ASM_GLOBAL_FUNC(call_thread_func_wrapper, ...@@ -2850,7 +2851,7 @@ __ASM_GLOBAL_FUNC(call_thread_func_wrapper,
/*********************************************************************** /***********************************************************************
* call_thread_func * call_thread_func
*/ */
void call_thread_func( LPTHREAD_START_ROUTINE entry, void *arg, void *frame ) void DECLSPEC_HIDDEN call_thread_func( LPTHREAD_START_ROUTINE entry, void *arg, void *frame )
{ {
x86_thread_data()->exit_frame = frame; x86_thread_data()->exit_frame = frame;
__TRY __TRY
......
...@@ -4061,7 +4061,7 @@ USHORT WINAPI RtlCaptureStackBackTrace( ULONG skip, ULONG count, PVOID *buffer, ...@@ -4061,7 +4061,7 @@ USHORT WINAPI RtlCaptureStackBackTrace( ULONG skip, ULONG count, PVOID *buffer,
/*********************************************************************** /***********************************************************************
* call_thread_func * call_thread_func
*/ */
void call_thread_func( LPTHREAD_START_ROUTINE entry, void *arg, void *frame ) void DECLSPEC_HIDDEN call_thread_func( LPTHREAD_START_ROUTINE entry, void *arg, void *frame )
{ {
amd64_thread_data()->exit_frame = frame; amd64_thread_data()->exit_frame = frame;
__TRY __TRY
......
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