Commit 281f7018 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Make cfi annotations optional for x86_64.

parent fd9c41ed
...@@ -353,14 +353,14 @@ __ASM_GLOBAL_FUNC( call_entry_point, ...@@ -353,14 +353,14 @@ __ASM_GLOBAL_FUNC( call_entry_point,
#else #else
__ASM_GLOBAL_FUNC( call_entry_point, __ASM_GLOBAL_FUNC( call_entry_point,
"pushq %rbp\n\t" "pushq %rbp\n\t"
".cfi_adjust_cfa_offset 8\n\t" __ASM_CFI(".cfi_adjust_cfa_offset 8\n\t")
".cfi_rel_offset %rbp,0\n\t" __ASM_CFI(".cfi_rel_offset %rbp,0\n\t")
"movq %rsp,%rbp\n\t" "movq %rsp,%rbp\n\t"
".cfi_def_cfa_register %rbp\n\t" __ASM_CFI(".cfi_def_cfa_register %rbp\n\t")
"pushq %rsi\n\t" "pushq %rsi\n\t"
".cfi_rel_offset %rsi,-8\n\t" __ASM_CFI(".cfi_rel_offset %rsi,-8\n\t")
"pushq %rdi\n\t" "pushq %rdi\n\t"
".cfi_rel_offset %rdi,-16\n\t" __ASM_CFI(".cfi_rel_offset %rdi,-16\n\t")
"movq %rcx,%rax\n\t" "movq %rcx,%rax\n\t"
"movq $4,%rcx\n\t" "movq $4,%rcx\n\t"
"cmp %rcx,%rdx\n\t" "cmp %rcx,%rdx\n\t"
...@@ -378,13 +378,13 @@ __ASM_GLOBAL_FUNC( call_entry_point, ...@@ -378,13 +378,13 @@ __ASM_GLOBAL_FUNC( call_entry_point,
"callq *%rax\n\t" "callq *%rax\n\t"
"leaq -16(%rbp),%rsp\n\t" "leaq -16(%rbp),%rsp\n\t"
"popq %rdi\n\t" "popq %rdi\n\t"
".cfi_same_value %rdi\n\t" __ASM_CFI(".cfi_same_value %rdi\n\t")
"popq %rsi\n\t" "popq %rsi\n\t"
".cfi_same_value %rsi\n\t" __ASM_CFI(".cfi_same_value %rsi\n\t")
".cfi_def_cfa_register %rsp\n\t" __ASM_CFI(".cfi_def_cfa_register %rsp\n\t")
"popq %rbp\n\t" "popq %rbp\n\t"
".cfi_adjust_cfa_offset -8\n\t" __ASM_CFI(".cfi_adjust_cfa_offset -8\n\t")
".cfi_same_value %rbp\n\t" __ASM_CFI(".cfi_same_value %rbp\n\t")
"ret") "ret")
#endif #endif
......
...@@ -1610,10 +1610,10 @@ NTSTATUS context_from_server( CONTEXT *to, const context_t *from ) ...@@ -1610,10 +1610,10 @@ NTSTATUS context_from_server( CONTEXT *to, const context_t *from )
extern void raise_func_trampoline( EXCEPTION_RECORD *rec, CONTEXT *context, raise_func func ); extern void raise_func_trampoline( EXCEPTION_RECORD *rec, CONTEXT *context, raise_func func );
__ASM_GLOBAL_FUNC( raise_func_trampoline, __ASM_GLOBAL_FUNC( raise_func_trampoline,
".cfi_signal_frame\n\t" __ASM_CFI(".cfi_signal_frame\n\t")
".cfi_def_cfa %rbp,144\n\t" /* red zone + rip + rbp */ __ASM_CFI(".cfi_def_cfa %rbp,144\n\t") /* red zone + rip + rbp */
".cfi_rel_offset %rip,8\n\t" __ASM_CFI(".cfi_rel_offset %rip,8\n\t")
".cfi_rel_offset %rbp,0\n\t" __ASM_CFI(".cfi_rel_offset %rbp,0\n\t")
"call *%rdx\n\t" "call *%rdx\n\t"
"int $3") "int $3")
...@@ -2975,14 +2975,14 @@ void call_thread_func( LPTHREAD_START_ROUTINE entry, void *arg, void *frame ) ...@@ -2975,14 +2975,14 @@ void call_thread_func( LPTHREAD_START_ROUTINE entry, void *arg, void *frame )
extern void DECLSPEC_NORETURN call_thread_entry_point( LPTHREAD_START_ROUTINE entry, void *arg ); extern void DECLSPEC_NORETURN call_thread_entry_point( LPTHREAD_START_ROUTINE entry, void *arg );
__ASM_GLOBAL_FUNC( call_thread_entry_point, __ASM_GLOBAL_FUNC( call_thread_entry_point,
"subq $8,%rsp\n\t" "subq $8,%rsp\n\t"
".cfi_adjust_cfa_offset 8\n\t" __ASM_CFI(".cfi_adjust_cfa_offset 8\n\t")
"movq %rsp,%rdx\n\t" "movq %rsp,%rdx\n\t"
"call " __ASM_NAME("call_thread_func") ); "call " __ASM_NAME("call_thread_func") );
extern void DECLSPEC_NORETURN call_thread_exit_func( int status, void (*func)(int), void *frame ); extern void DECLSPEC_NORETURN call_thread_exit_func( int status, void (*func)(int), void *frame );
__ASM_GLOBAL_FUNC( call_thread_exit_func, __ASM_GLOBAL_FUNC( call_thread_exit_func,
"subq $8,%rsp\n\t" "subq $8,%rsp\n\t"
".cfi_adjust_cfa_offset 8\n\t" __ASM_CFI(".cfi_adjust_cfa_offset 8\n\t")
"movq %rdx,%rsp\n\t" "movq %rdx,%rsp\n\t"
"call *%rsi" ); "call *%rsi" );
......
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