1d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 25a205a32SVineet Gupta /* 35a205a32SVineet Gupta * Copyright (C) 2016-17 Synopsys, Inc. (www.synopsys.com) 45a205a32SVineet Gupta */ 55a205a32SVineet Gupta 65a205a32SVineet Gupta #ifndef _ASM_ARC_DWARF_H 75a205a32SVineet Gupta #define _ASM_ARC_DWARF_H 85a205a32SVineet Gupta 95a205a32SVineet Gupta #ifdef __ASSEMBLY__ 105a205a32SVineet Gupta 115a205a32SVineet Gupta #ifdef ARC_DW2_UNWIND_AS_CFI 125a205a32SVineet Gupta 135a205a32SVineet Gupta #define CFI_STARTPROC .cfi_startproc 145a205a32SVineet Gupta #define CFI_ENDPROC .cfi_endproc 155a205a32SVineet Gupta #define CFI_DEF_CFA .cfi_def_cfa 16*b060b7d0SVineet Gupta #define CFI_DEF_CFA_OFFSET .cfi_def_cfa_offset 17*b060b7d0SVineet Gupta #define CFI_DEF_CFA_REGISTER .cfi_def_cfa_register 18*b060b7d0SVineet Gupta #define CFI_OFFSET .cfi_offset 195a205a32SVineet Gupta #define CFI_REL_OFFSET .cfi_rel_offset 20*b060b7d0SVineet Gupta #define CFI_REGISTER .cfi_register 21*b060b7d0SVineet Gupta #define CFI_RESTORE .cfi_restore 225a205a32SVineet Gupta #define CFI_UNDEFINED .cfi_undefined 235a205a32SVineet Gupta 245a205a32SVineet Gupta #else 255a205a32SVineet Gupta 265a205a32SVineet Gupta #define CFI_IGNORE # 275a205a32SVineet Gupta 285a205a32SVineet Gupta #define CFI_STARTPROC CFI_IGNORE 295a205a32SVineet Gupta #define CFI_ENDPROC CFI_IGNORE 305a205a32SVineet Gupta #define CFI_DEF_CFA CFI_IGNORE 31*b060b7d0SVineet Gupta #define CFI_DEF_CFA_OFFSET CFI_IGNORE 32*b060b7d0SVineet Gupta #define CFI_DEF_CFA_REGISTER CFI_IGNORE 33*b060b7d0SVineet Gupta #define CFI_OFFSET CFI_IGNORE 345a205a32SVineet Gupta #define CFI_REL_OFFSET CFI_IGNORE 35*b060b7d0SVineet Gupta #define CFI_REGISTER CFI_IGNORE 36*b060b7d0SVineet Gupta #define CFI_RESTORE CFI_IGNORE 375a205a32SVineet Gupta #define CFI_UNDEFINED CFI_IGNORE 385a205a32SVineet Gupta 395a205a32SVineet Gupta #endif /* !ARC_DW2_UNWIND_AS_CFI */ 405a205a32SVineet Gupta 415a205a32SVineet Gupta #endif /* __ASSEMBLY__ */ 425a205a32SVineet Gupta 435a205a32SVineet Gupta #endif /* _ASM_ARC_DWARF_H */ 44