tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
common.h
Go to the documentation of this file.
1 /**
2  * Copyright (C) 2011
3  * University of Rochester Department of Computer Science
4  * and
5  * Lehigh University Department of Computer Science and Engineering
6  *
7  * License: Modified BSD
8  * Please see the file LICENSE.RSTM for licensing information
9  */
10 
11 #ifndef STM_ITM2STM_ARCH_COMMON_H
12 #define STM_ITM2STM_ARCH_COMMON_H
13 
14 #define ITM_SAVE_LIVE_VARIABLES 0x04
15 #define ITM_ABORT_FLAGS 0x18
16 
17 #if defined(__APPLE__)
18 # define ASM_DOT_TYPE(S, T)
19 # define ASM_DOT_SIZE(S, T)
20 # define ASM_DOT_CFI_STARTPROC
21 # define ASM_DOT_CFI_ENDPROC
22 # define ASM_DOT_CFI_OFFSET(S, T)
23 # define ASM_DOT_CFI_DEF_CFO_OFFSET(S)
24 #else
25 # define ASM_DOT_TYPE(S, T) .type S, T
26 # define ASM_DOT_SIZE(S, T) .size S, T
27 # define ASM_DOT_CFI_STARTPROC .cfi_startproc
28 # define ASM_DOT_CFI_ENDPROC .cfi_endproc
29 # define ASM_DOT_CFI_OFFSET(S, T) .cfi_offset S, T
30 # define ASM_DOT_CFI_DEF_CFO_OFFSET(S) .cfi_def_cfa_offset S
31 #endif
32 
33 #endif // STM_ITM2STM_ARCH_COMMON_H