Commit 1215c2a6 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ntdll: Use DECLSPEC_HIDDEN for a few more symbols.

parent 4e789932
...@@ -638,7 +638,7 @@ static int solaris_sigaction( int sig, const struct sigaction *new, struct sigac ...@@ -638,7 +638,7 @@ static int solaris_sigaction( int sig, const struct sigaction *new, struct sigac
#endif #endif
extern void clear_alignment_flag(void); extern void clear_alignment_flag(void) DECLSPEC_HIDDEN;
__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")
...@@ -914,7 +914,7 @@ static inline void restore_context( const struct xcontext *xcontext, ucontext_t ...@@ -914,7 +914,7 @@ static inline void restore_context( const struct xcontext *xcontext, ucontext_t
* *
* Set the new CPU context. * Set the new CPU context.
*/ */
extern void set_full_cpu_context(void); extern void set_full_cpu_context(void) DECLSPEC_HIDDEN;
__ASM_GLOBAL_FUNC( set_full_cpu_context, __ASM_GLOBAL_FUNC( set_full_cpu_context,
"movl %fs:0x1f8,%ecx\n\t" "movl %fs:0x1f8,%ecx\n\t"
"movl $0,%fs:0x1f8\n\t" /* x86_thread_data()->syscall_frame = NULL */ "movl $0,%fs:0x1f8\n\t" /* x86_thread_data()->syscall_frame = NULL */
...@@ -1624,6 +1624,9 @@ struct apc_stack_layout ...@@ -1624,6 +1624,9 @@ struct apc_stack_layout
struct apc_stack_layout * WINAPI setup_user_apc_dispatcher_stack( CONTEXT *context, struct apc_stack_layout *stack, struct apc_stack_layout * WINAPI setup_user_apc_dispatcher_stack( CONTEXT *context, struct apc_stack_layout *stack,
void *arg1, void *arg2, void *arg3, void *arg1, void *arg2, void *arg3,
void *func, NTSTATUS status ) DECLSPEC_HIDDEN;
struct apc_stack_layout * WINAPI setup_user_apc_dispatcher_stack( CONTEXT *context, struct apc_stack_layout *stack,
void *arg1, void *arg2, void *arg3,
void *func, NTSTATUS status ) void *func, NTSTATUS status )
{ {
CONTEXT c; CONTEXT c;
......
...@@ -1568,7 +1568,7 @@ static void restore_context( const struct xcontext *xcontext, ucontext_t *sigcon ...@@ -1568,7 +1568,7 @@ static void restore_context( const struct xcontext *xcontext, ucontext_t *sigcon
* *
* Set the new CPU context. * Set the new CPU context.
*/ */
extern void set_full_cpu_context(void); extern void set_full_cpu_context(void) DECLSPEC_HIDDEN;
__ASM_GLOBAL_FUNC( set_full_cpu_context, __ASM_GLOBAL_FUNC( set_full_cpu_context,
"movq %gs:0x30,%rdx\n\t" "movq %gs:0x30,%rdx\n\t"
"movq 0x328(%rdx),%rsp\n\t" /* amd64_thread_data()->syscall_frame */ "movq 0x328(%rdx),%rsp\n\t" /* amd64_thread_data()->syscall_frame */
...@@ -1874,7 +1874,7 @@ NTSTATUS get_thread_wow64_context( HANDLE handle, void *ctx, ULONG size ) ...@@ -1874,7 +1874,7 @@ NTSTATUS get_thread_wow64_context( HANDLE handle, void *ctx, ULONG size )
} }
extern void CDECL raise_func_trampoline( void *dispatcher ); extern void CDECL raise_func_trampoline( void *dispatcher ) DECLSPEC_HIDDEN;
__ASM_GLOBAL_FUNC( raise_func_trampoline, __ASM_GLOBAL_FUNC( raise_func_trampoline,
"jmpq *%r8\n\t") "jmpq *%r8\n\t")
...@@ -1973,6 +1973,9 @@ static void setup_exception( ucontext_t *sigcontext, EXCEPTION_RECORD *rec ) ...@@ -1973,6 +1973,9 @@ static void setup_exception( ucontext_t *sigcontext, EXCEPTION_RECORD *rec )
*/ */
struct apc_stack_layout * WINAPI setup_user_apc_dispatcher_stack( CONTEXT *context, struct apc_stack_layout * WINAPI setup_user_apc_dispatcher_stack( CONTEXT *context,
struct apc_stack_layout *stack, struct apc_stack_layout *stack,
NTSTATUS status ) DECLSPEC_HIDDEN;
struct apc_stack_layout * WINAPI setup_user_apc_dispatcher_stack( CONTEXT *context,
struct apc_stack_layout *stack,
NTSTATUS status ) NTSTATUS status )
{ {
CONTEXT c; CONTEXT c;
...@@ -2053,6 +2056,9 @@ void WINAPI call_raise_user_exception_dispatcher( NTSTATUS (WINAPI *dispatcher)( ...@@ -2053,6 +2056,9 @@ void WINAPI call_raise_user_exception_dispatcher( NTSTATUS (WINAPI *dispatcher)(
*/ */
struct stack_layout * WINAPI setup_user_exception_dispatcher_stack( EXCEPTION_RECORD *rec, CONTEXT *context, struct stack_layout * WINAPI setup_user_exception_dispatcher_stack( EXCEPTION_RECORD *rec, CONTEXT *context,
NTSTATUS (WINAPI *dispatcher)(EXCEPTION_RECORD*,CONTEXT*), NTSTATUS (WINAPI *dispatcher)(EXCEPTION_RECORD*,CONTEXT*),
struct stack_layout *stack ) DECLSPEC_HIDDEN;
struct stack_layout * WINAPI setup_user_exception_dispatcher_stack( EXCEPTION_RECORD *rec, CONTEXT *context,
NTSTATUS (WINAPI *dispatcher)(EXCEPTION_RECORD*,CONTEXT*),
struct stack_layout *stack ) struct stack_layout *stack )
{ {
if ((context->ContextFlags & CONTEXT_XSTATE) == CONTEXT_XSTATE) if ((context->ContextFlags & CONTEXT_XSTATE) == CONTEXT_XSTATE)
......
...@@ -197,7 +197,7 @@ static inline void do_cpuid(unsigned int ax, unsigned int cx, unsigned int *p) ...@@ -197,7 +197,7 @@ static inline void do_cpuid(unsigned int ax, unsigned int cx, unsigned int *p)
} }
#ifdef __i386__ #ifdef __i386__
extern int have_cpuid(void); extern int have_cpuid(void) DECLSPEC_HIDDEN;
__ASM_GLOBAL_FUNC( have_cpuid, __ASM_GLOBAL_FUNC( have_cpuid,
"pushfl\n\t" "pushfl\n\t"
"pushfl\n\t" "pushfl\n\t"
......
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