Debian Codegraph @

mpi/amd64/func_abi.h

raw
1 #include <config.h>
2
3 #include "asm-common-amd64.h"
4
5 #ifdef USE_MS_ABI
6 /* Store registers and move four first input arguments from MS ABI to
7 * SYSV ABI. */
8 #define FUNC_ENTRY() \
9 CFI_STARTPROC(); \
10 pushq %rsi; \
11 CFI_PUSH(%rsi); \
12 pushq %rdi; \
13 CFI_PUSH(%rdi); \
14 movq %rdx, %rsi; \
15 movq %rcx, %rdi; \
16 movq %r8, %rdx; \
17 movq %r9, %rcx;
18
19 /* Restore registers. */
20 #define FUNC_EXIT() \
21 popq %rdi; \
22 CFI_POP(%rdi); \
23 popq %rsi; \
24 CFI_POP(%rsi); \
25 ret_spec_stop; \
26 CFI_ENDPROC();
27 #else
28 #define FUNC_ENTRY() \
29 CFI_STARTPROC();
30
31 #define FUNC_EXIT() \
32 ret_spec_stop; \
33 CFI_ENDPROC();
34 #endif