1 #ifdef __aarch64__
2 # define STATIC_CHAIN_REG  "x18"
3 #elif defined(__alpha__)
4 # define STATIC_CHAIN_REG  "$1"
5 #elif defined(__arm__)
6 # define STATIC_CHAIN_REG  "ip"
7 #elif defined(__sparc__)
8 # if defined(__arch64__) || defined(__sparcv9)
9 #  define STATIC_CHAIN_REG "g5"
10 # else
11 #  define STATIC_CHAIN_REG "g2"
12 # endif
13 #elif defined(__x86_64__)
14 # define STATIC_CHAIN_REG  "r10"
15 #elif defined(__i386__)
16 # ifndef ABI_NUM
17 #  define STATIC_CHAIN_REG  "ecx"	/* FFI_DEFAULT_ABI only */
18 # endif
19 #endif
20