X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Flibunwind-arm.h;h=f208487a999d156d1cde369b3d372e528eec96b6;hb=c3646297060ae1629ff1d1b10f648267f0495a0f;hp=cba380f2e4bab2cfedf4c12a5573e4a1d864f094;hpb=0349587920c255c479240518d9c04581977144eb;p=platform%2Fupstream%2Flibunwind.git diff --git a/include/libunwind-arm.h b/include/libunwind-arm.h index cba380f..f208487 100644 --- a/include/libunwind-arm.h +++ b/include/libunwind-arm.h @@ -32,10 +32,10 @@ extern "C" { #include #include -#define UNW_TARGET arm -#define UNW_TARGET_ARM 1 +#define UNW_TARGET arm +#define UNW_TARGET_ARM 1 -#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */ +#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */ /* This needs to be big enough to accommodate "struct cursor", while leaving some slack for future expansion. Changing this value will @@ -44,7 +44,7 @@ extern "C" { want to err on making it rather too big than too small. */ /* FIXME for ARM. Too big? What do other things use for similar tasks? */ -#define UNW_TDEP_CURSOR_LEN 4096 +#define UNW_TDEP_CURSOR_LEN 4096 typedef uint32_t unw_word_t; typedef int32_t unw_sword_t; @@ -242,7 +242,7 @@ typedef enum } arm_regnum_t; -#define UNW_TDEP_NUM_EH_REGS 2 /* FIXME for ARM. */ +#define UNW_TDEP_NUM_EH_REGS 2 /* FIXME for ARM. */ typedef struct unw_tdep_save_loc { @@ -263,22 +263,22 @@ unw_tdep_context_t; registers. FIXME: Not ideal, may not be sufficient for all libunwind use cases. Stores pc+8, which is only approximately correct, really. */ #ifndef __thumb__ -#define unw_tdep_getcontext(uc) (({ \ - unw_tdep_context_t *unw_ctx = (uc); \ - register unsigned long *unw_base asm ("r0") = unw_ctx->regs; \ - __asm__ __volatile__ ( \ - "stmia %[base], {r0-r15}" \ - : : [base] "r" (unw_base) : "memory"); \ +#define unw_tdep_getcontext(uc) (({ \ + unw_tdep_context_t *unw_ctx = (uc); \ + register unsigned long *unw_base asm ("r0") = unw_ctx->regs; \ + __asm__ __volatile__ ( \ + "stmia %[base], {r0-r15}" \ + : : [base] "r" (unw_base) : "memory"); \ }), 0) #else /* __thumb__ */ -#define unw_tdep_getcontext(uc) (({ \ - unw_tdep_context_t *unw_ctx = (uc); \ - register unsigned long *unw_base asm ("r0") = unw_ctx->regs; \ - __asm__ __volatile__ ( \ - ".align 2\nbx pc\nnop\n.code 32\n" \ - "stmia %[base], {r0-r15}\n" \ - "orr %[base], pc, #1\nbx %[base]" \ - : [base] "+r" (unw_base) : : "memory", "cc"); \ +#define unw_tdep_getcontext(uc) (({ \ + unw_tdep_context_t *unw_ctx = (uc); \ + register unsigned long *unw_base asm ("r0") = unw_ctx->regs; \ + __asm__ __volatile__ ( \ + ".align 2\nbx pc\nnop\n.code 32\n" \ + "stmia %[base], {r0-r15}\n" \ + "orr %[base], pc, #1\nbx %[base]" \ + : [base] "+r" (unw_base) : : "memory", "cc"); \ }), 0) #endif @@ -292,7 +292,7 @@ unw_tdep_proc_info_t; #include "libunwind-common.h" -#define unw_tdep_is_fpreg UNW_ARCH_OBJ(is_fpreg) +#define unw_tdep_is_fpreg UNW_ARCH_OBJ(is_fpreg) extern int unw_tdep_is_fpreg (int); #if defined(__cplusplus) || defined(c_plusplus)